By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,949 Members | 1,554 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,949 IT Pros & Developers. It's quick & easy.

VBScript and JScript

P: n/a
Hi,

At the top of my ASP page I declare <%@ Language=VBScript %> what do I
have to write to embed some JScript in that page? Do I have to indicate
that the code is intended to execute at the client side (if it is the
case)?

thank you in advance
serge

Jul 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
> what do I
have to write to embed some JScript in that page?


Client-side JScript, or server-side JScript?

--
http://www.aspfaq.com/
(Reverse address to reply.)
Jul 19 '05 #2

P: n/a
In fact what I am trying do do is automating a FORM POST

if Session("Table") = "basket" then
Session("Table") = "product"
window.onLoad = document.frmPickProd.submit()
end if

this gives the error 'Expected end of statement

if I put

<% Language=JScript %>
<%
window.onLoad = document.frmPickProd.submit()
%>

the error is ' Expected statement

I tried every form of <% <%@ etc.

thank's
serge

"Aaron [SQL Server MVP]" wrote:
what do I
have to write to embed some JScript in that page?


Client-side JScript, or server-side JScript?

--
http://www.aspfaq.com/
(Reverse address to reply.)


Jul 19 '05 #3

P: n/a
<%
if session("Table") = "basket" then
session("Table") = "product"
response.write "<script>document.frmPickProd.submit();</script>"
end if
%>

--
http://www.aspfaq.com/
(Reverse address to reply.)


"Serge Myrand" <in**@softdelirium.qc.ca> wrote in message
news:40***************@softdelirium.qc.ca...
In fact what I am trying do do is automating a FORM POST

if Session("Table") = "basket" then
Session("Table") = "product"
window.onLoad = document.frmPickProd.submit()
end if

this gives the error 'Expected end of statement

if I put

<% Language=JScript %>
<%
window.onLoad = document.frmPickProd.submit()
%>

the error is ' Expected statement

I tried every form of <% <%@ etc.

thank's
serge

"Aaron [SQL Server MVP]" wrote:
what do I
have to write to embed some JScript in that page?


Client-side JScript, or server-side JScript?

--
http://www.aspfaq.com/
(Reverse address to reply.)

Jul 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.