Connecting Tech Pros Worldwide Help | Site Map

VBSCRIPT in between JAVASCRIPT and an INPUT TAG Problem

  #1  
Old February 10th, 2006, 10:25 PM
shookim@gmail.com
Guest
 
Posts: n/a
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

  #2  
Old February 11th, 2006, 06:35 PM
Dr John Stockton
Guest
 
Posts: n/a

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.
  #3  
Old February 13th, 2006, 02:55 PM
shookim@gmail.com
Guest
 
Posts: n/a

re: VBSCRIPT in between JAVASCRIPT and an INPUT TAG Problem


THANKS, that worked!

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Asp.net Important Topics. shamirza answers 0 January 18th, 2007 05:15 AM