VBSCRIPT in between JAVASCRIPT and an INPUT TAG Problem

S

shookim

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

<script type="text/javascript">
window.onload = function () {
var oTextbox = new
AutoSuggestControl(document.getElementById("txtManagers"), 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.

Please, help!
sk
 
D

Dr John Stockton

JRS: In article <[email protected]>
, dated Fri, 10 Feb 2006 14:17:06 remote, seen in
news:comp.lang.javascript said:
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.


Try ...javascript, vbscript, javascript, input tag.

Better, though, to replace the VBscript with javascript; few browsers
handle VBscript.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top