Connecting Tech Pros Worldwide Help | Site Map

VBSCRIPT in between JAVASCRIPT and an INPUT TAG Problem

 
LinkBack Thread Tools Search this Thread
  #1  
Old February 10th, 2006, 09:25 PM
shookim@gmail.com
Guest
 
Posts: n/a
Default VBSCRIPT in between JAVASCRIPT and an INPUT TAG Problem

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, 05:35 PM
Dr John Stockton
Guest
 
Posts: n/a
Default 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, 01:55 PM
shookim@gmail.com
Guest
 
Posts: n/a
Default Re: VBSCRIPT in between JAVASCRIPT and an INPUT TAG Problem

THANKS, that worked!

 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.