Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 10th, 2006, 06:24 PM
Registered User
Join Date: Feb 2006
Location: Houston, TX, .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to shookim Send a message via Yahoo to shookim
Default VBSCRIPT in between JAVASCRIPT and an INPUT TAG Pr

I have a problem with my code. My window.onload function
doesn't get called when there is vbscript between the javascript code and my input tag. Here is my code which works:

<script type="text/javascript">
    window.onload = function () {
        var oTextbox = new
AutoSuggestControl(document.getElementById("txtMan agers"), new


<p>ManagerName:<input type="text" id="txtManagers" /> </p>

Once I implement this code into my main code, which contains vbscript
in between the input and the javascript code. The window.onload
doesn't get called. My layout on my main code is
basically...javascript, vbscript, input tag. Is there some understood problem with having vbscript in between these two items that would cause it not to be called?

Please, help!

Reply With Quote
  #2 (permalink)  
Old February 11th, 2006, 04:05 AM
Friend of Wrox
Join Date: Oct 2004
Location: delhi, delhi, India.
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919

HIii shookim!!
I had also found this problem in my page
solution is to change the order of script in ur page
1>all javascript code
2>all vbscript code

<script langauage="javascript">

<script langauage="vbscript">

Hope this will help you.
Please let me know if you have other alternatives.

Cheers :)

Reply With Quote
  #3 (permalink)  
Old February 13th, 2006, 10:48 AM
Registered User
Join Date: Feb 2006
Location: Houston, TX, .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to shookim Send a message via Yahoo to shookim

actually, I just put another set of javascript code after the vbscript code and it works.


Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript, Msxml2.XMLHTTP - Spanish Characters Pr itHighway Classic ASP Basics 1 November 14th, 2008 09:20 PM
HTML tag from C# or ASP.NET tag from javascript angshujit ASP.NET 2.0 Basics 3 February 16th, 2007 10:07 AM
INPUT BOX IN ASP/VBSCRIPT chinedu Classic ASP Basics 8 February 15th, 2007 02:47 PM
dynamic <input> tag Val Javascript 1 September 6th, 2006 02:55 AM
define location for file input tag bleitner Javascript 6 August 21st, 2004 09:47 AM

All times are GMT -4. The time now is 05:40 AM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.