473,406 Members | 2,378 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

VBScript and JScript

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
3 1423
> 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
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
<%
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

29
by: Christopher Brandsdal | last post by:
If I have a .ASP page that runs JScript code - is it possible to include an ..ASP page that runs VBscript???
20
by: Harag | last post by:
Hi All. I'm stating out doing some web developing. I was wondering which of the server side languages should I concentrate on and learn. I Know CSS, HTML, T-SQL I can look at the client...
15
by: Laser Lu | last post by:
In ASP and CGI, which one would be executed more fast and has the better execution efficiency in IIS? And how about writing CGI in VB? -- Best regards, Laser Lu
3
by: Christopher Brandsdal | last post by:
Hi! Maby this is wring newsgroup.. I'm using ASP / VBscript on my own cms system, but I needed to use some jscript to make something work... I'm new to jscript, so here is a simple question:...
16
by: Mike Schinkel | last post by:
Does anyone know if there are bugs in VBScript's GetRef()? I'm using VBScript Version 5.6.8515 on Win2003Server w/ASP. Sometimes it returns an object that VarType() says is a vbObject. Other...
5
by: gpence | last post by:
!!! Newbie question warning !!! I am somewhat familiar with javascript's ability to "access" the browser's favorites list -- for example, using window.home() will take you to the default URL --...
7
by: joe | last post by:
I am having problems checking for the value of an XMLDOM object . Lets say my XMLDOM object was successfully created as objXMLDoc, and that has several nodes on it. In the case of a VBScript loop...
7
by: dkiernan | last post by:
I am stumped. I have several websites running on a 2003 IIS6 box, all running basically the same code (each site has its own home directory and copy of the code). All are running in the same App...
2
by: tunk | last post by:
I dont know where to start my question so let me tell you my story :) The ASP that cause me trouble is running on IIS that set ASP default language to JScript instead of VBScript. This ASP page...
1
by: Andrew Wan | last post by:
How can VBScript code access JScript code variables in the same ASP page? <SCRIPT LANGAUGE="VBScript"> Dim a a = 10 </SCRIPT> <SCRIPT LANGUAGE="JScript"> Response.Write(a); </SCRIPT>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.