Welcome Guest ( Log In | Register )



 
Reply to this topicStart new topic
> Coding Asp In Javascript
demolaynyc
post Feb 23 2007, 06:27 PM
Post #1


Premium Member
Group Icon

Group: Members
Posts: 330
Joined: 2-February 06
Member No.: 11,040



I read in w3schools.com that you can code in Javascript rather than VBscript in making ASP pages. All you have to do is to put the following line at the top of the page: <%@ language="Javascript" %>

I don't like VBScript because it's just too confusing and I know a lot about Jscript. Coding in ASP with JS would be really cool and helpful so is it really possible? Can anyone help me with this?

What I mean is that I want to use these kind of syntax: "document.write" instead of "response.write" and "function hello(){}" instead of "private sub hello() end sub"
Is it possible?
Go to the top of the page
 
+Quote Post
livingston
post Feb 23 2007, 11:35 PM
Post #2


Advanced Member
Group Icon

Group: Members
Posts: 149
Joined: 14-February 07
From: Tuticorin, India
Member No.: 20,415



Visual Basic is the easiest High Level programming language to understand and code. VBScript is based on the VB language, it include the functionality of VB but lacks in some core functions that deal with system internals.

JavaScript is a powerful scripting language for client based scripting, it dosen't has more functionality than VBScript in serverside. VBScript lacks the client side scripting capability and lags behind Java Script in this regard.

VBScript being a cropped version of Visual Basic can handle the various serverside components for ASP and access the Microsoft Component and provide more flexibilty than Javascript. So it is better to code ASP codes with VBScript rather than Javascript.

But you can use javasript for handling client side operations like validation and VBScript for serverside processing.
Go to the top of the page
 
+Quote Post
demolaynyc
post Feb 27 2007, 01:13 AM
Post #3


Premium Member
Group Icon

Group: Members
Posts: 330
Joined: 2-February 06
Member No.: 11,040



I don't really care about VBscript, I just want to find out if I can really use Javascript in ASP.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Web Editor(0)
  2. I Need Help With Javascript.(7)
  3. Include Function For Javascript(7)
  4. Get The Current Running Machine Ip-c/c++ Coding(2)
  5. JavaScript Frames & Querystring(4)
  6. Coding Layouts(4)
  7. Conditional Statements Of Javascript(1)
  8. Best Way To Learn Javascript(9)
  9. Javascript Operators(0)
  10. Hack Websites(8)
  11. Create And Import JavaScript Modules For A Large Script(2)
  12. Ever Needs To Find Out A Table Height Or With With JavaScript(2)
  13. Getting Screen Resolution using Javascript.(8)
  14. Random Images On Eacht Pageload And Refresh.(6)
  15. Javascript Tutorial For Beginner(0)
  1. How To Create A Popup Window With Javascript?(19)
  2. Extplorer(7)
  3. javascript vs java(12)
  4. Creating Tooltips(7)
  5. Javascript: Disable Mouse Right-click In Browser(16)
  6. Add Text To Textarea(6)
  7. Javascript Changes Aren't Working.(6)
  8. Javascript Xml Parser Vs. Xslt Processor(0)
  9. JavaScript: Hide And Show Any Element With CSS(5)
  10. Javascript Help Needed : Alert(z) Works Fine But Document.write Not(2)
  11. Game Coding(4)
  12. Fun With Javascript And Forms(2)
  13. Javascript: Text To Texbox And Back To Text(2)
  14. Javascript Problem(3)
  15. Send Php Variable To Javascript(5)


 



- Lo-Fi Version Time is now: 7th October 2008 - 06:04 PM