Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can VBScript and Javascript be used on same page?

Status
Not open for further replies.

Julianne

Technical User
Jan 30, 2002
156
GB
My ASP pages have scripts in them that are written in vbscript. I've finally found an ASP-based site search that I can get working and which does exactly what I want it to, but it's apparently written in Javascript!

I've tried everything I can think of but just can't work out how I can incorporate the search box into an existing page. It works fine on its own page, but not if I try to put the form/include files etc into my homepage, for example.

The script is at
I'd be really grateful if someone could tell me how I can get the script to work within my existing pages, or if there's a workaround that I can use.

Many thanks.

Visit my ice hockey site at:
 
Yes they can be used in the same page, although it is not recommended for perfomance reasons.

Only one language can be written in the inline code blocks the other language must be contained in script tags

<script runat=&quot;server&quot; langauge=&quot;javascript&quot;>
....
</script>


-pete
I just can't seem to get back my IntelliSense
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top