Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

VBSCRIPT in between JAVASCRIPT and an INPUT TAG Problem

0 views
Skip to first unread message

sho...@gmail.com

unread,
Feb 10, 2006, 5:17:06 PM2/10/06
to
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

Dr John Stockton

unread,
Feb 11, 2006, 9:11:41 AM2/11/06
to
JRS: In article <1139609826.2...@g43g2000cwa.googlegroups.com>
, dated Fri, 10 Feb 2006 14:17:06 remote, seen in
news:comp.lang.javascript, sho...@gmail.com <sho...@gmail.com> posted
:

>
>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.

--
© 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.

sho...@gmail.com

unread,
Feb 13, 2006, 9:42:03 AM2/13/06
to
THANKS, that worked!

0 new messages