Connecting Tech Pros Worldwide Forums | Help | Site Map

VBSCRIPT in between JAVASCRIPT and an INPUT TAG Problem

shookim@gmail.com
Guest
 
Posts: n/a
#1: Feb 10 '06
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("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.

Please, help!
sk


Dr John Stockton
Guest
 
Posts: n/a
#2: Feb 11 '06

re: VBSCRIPT in between JAVASCRIPT and an INPUT TAG Problem


JRS: In article <1139609826.254580.207460@g43g2000cwa.googlegroups .com>
, dated Fri, 10 Feb 2006 14:17:06 remote, seen in
news:comp.lang.javascript, shookim@gmail.com <shookim@gmail.com> posted
:[color=blue]
>
>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.[/color]


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

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

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
shookim@gmail.com
Guest
 
Posts: n/a
#3: Feb 13 '06

re: VBSCRIPT in between JAVASCRIPT and an INPUT TAG Problem


THANKS, that worked!

Closed Thread


Similar JavaScript / Ajax / DHTML bytes