Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 10th, 2006, 06:24 PM
Registered User
 
Join Date: Feb 2006
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
ManagerSuggestions());
    }//adocument.getElementById("txtProfileID"),
</script>
</head>

<body>

<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!
sk

 
Old February 11th, 2006, 04:05 AM
Friend of Wrox
 
Join Date: Oct 2004
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
Default

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

i.e
<script langauage="javascript">
//Javascriptcodes
</script>

<script langauage="vbscript">
//VBscriptcodes
</script>


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


Cheers :)

vinod
 
Old February 13th, 2006, 10:48 AM
Registered User
 
Join Date: Feb 2006
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

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

Thanks.






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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.