471,075 Members | 1,070 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,075 software developers and data experts.

for loop and create class using Javascript

1
I need to use Javascript in classic ASP for a project. However, I seem to have problem using javascript combined with ASP. Here are the questions:
1) ERROR to create class, see code below:
Expand|Select|Wrap|Line Numbers
  1. <%@ Language = JavaScript %>
  2. <html>
  3. <body>
  4. <%
  5. Class vehicle {
  6. }
  7. %>
  8. </body>
  9. </html>
  10.  
however, I have no problem creating class in pure html javascript. I thought it is because of the version. I am using IE 8 in vista and the javascript version 1.3.

2) I try to list out querystring using for in loop using javascript instead of vbscript and it doesn't work.
Expand|Select|Wrap|Line Numbers
  1. <%@ Language=Javascript %>
  2. <%
  3.     var strName = Request.QueryString("textbox3")
  4.     Response.write (strName)
  5.  
  6.     for (var strList in Request.QueryString)
  7.     {
  8.         Response.write (strList)
  9.     }    
  10. %>
  11.  
  12.  
  13.  
  14. <%@ Language=Javascript %>
  15. <%
  16.     for (var strList in Request.QueryString)
  17.     {
  18.         Response.write (strList)
  19.     }    
  20.  
  21. %>
May 18 '10 #1
1 2130
jhardman
3,406 Expert 2GB
let me get this straight, you are writing an ASP page using javascript as the server-side scripting language, right? This has nothing to do with the browser you use, the script should be done and gone by the time the browser gets it. It will be affected by the server version. I assume you are using IIS, which version?

Jared
May 19 '10 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by mlt | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.