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


 



- Lo-Fi Version Time is now: 13th October 2008 - 01:04 AM