473,883 Members | 1,684 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

for loop and create class using Javascript

1 New Member
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 2297
jhardman
3,406 Recognized Expert Specialist
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

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

Similar topics

4
14477
by: Anshul Gupta | last post by:
Hi, Is there a way i can just print a designated area out of the whole asp(or html) page using javascript or vbscript. i want to mark out the beginning and the end on the page and create a link just to print out that section. Please help me if there is any way to do this. Thankyou
3
8514
by: Roy Wang | last post by:
hi, My problem is how to determining when the XML file has loaded using javascript. I loaded an xml file using javascript in a web page. The code below is loading the xml file for IE: this.xmlDoc= new ActiveXObject("Microsoft.DomDocument"); this.xmlDoc.load(url);
2
3067
by: Jake Barnes | last post by:
Using javascript closures to create singletons to ensure the survival of a reference to an HTML block when removeChild() may remove the last reference to the block and thus destory the block is what I'm hoping to achieve. I've never before had to use Javascript closures, but now I do, so I'm making an effort to understand them. I've been giving this essay a re-read: http://jibbering.com/faq/faq_notes/closures.html
6
6163
by: Charlie | last post by:
Hi: I have sections on a page in asp panels. I would like to hide/show using javascript, but don't see a visible property for DIV. How do you do this? Thanks, Charlie
2
1218
by: L Gopi | last post by:
Hi! I have created a com component using framework 1.1. This component will be installed on the users machine. This component will be used by my 2.0 web application. A javascript call is made to create a instance of the component. The purpose of the component is collect the printers installed on the users machine and return the values to javascript. This works fine on some machines and does not work on few machines. Javascript is...
9
2051
by: snitu | last post by:
Hi All I m new with javascript and xml. can any one plz........ help me how to show treecheckbox using xml file. that means the nods name of the tree came from xml file. Reply Plz?????????????????????? Thanks.
2
2476
by: Ananthu | last post by:
Hi I want to create menus in ASP.NET for my webpage. The menu item(in the format ->)should show the submenu items vertically to its right hand side when the user moves the mouse over the menu item and then i want the user to click that item and go to other pages. Please give me some simple example and then i will pick up the rest... Thanks in Advance....
4
1691
by: ganesh22 | last post by:
Hi, How to Create textboxs using JavaScript in asp.net/c# and how to assign that values to a string?
3
9869
by: zac540 | last post by:
Hey everyone! First of all I'd like to say that I did my best to look for any other relevant posts. The best I found was this interesting thread.. http://bytes.com/forum/thread594982.html If it answered my question I am just to stupid to realize it I would like to apologize in advance. This is my very first attempt at using Javascript so any help at all is greatly appreciated. I read the W3Schools Tutorial on Javascript so that and some...
6
2305
by: mlt | last post by:
I have the following class: class Test { public: Test() { a = 33; } private:
0
9792
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11142
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10847
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10416
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7971
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5991
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4612
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4220
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3233
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.