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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

@ Language=VBScript 1

Status
Not open for further replies.

cross

Programmer
Aug 3, 2001
1
US
What is the difference between <%@ Language=VBScript %> and
<SCRIPT language=&quot;vbscript&quot;>?

When I use the second script command I get an error saying that my Left command is invalid, but it works with the first script command?

I've searched high and low for info on the web for the first script command and can find nothing.

Thanks,
Clayton
 
The first one is a server side directive saying that all (server side) code within <% %>'s will be in VBScript. The second one is a client side script block, with the language set to VBScript. If you want to use the second one so that your code doesn't have to be in <% %>'s, then do this:

<script language=VBScript runat=Server>

and everything until your </script> will run on the server. &quot;A computer scientist is a person who knows when it is time to hit the computer.&quot;

John

johnmc@mvmills.com
 
how do i display the dataEntered in form Fields and display it in the table in the same page?
 
u have to acess them from document.&quot;formname&quot;.&quot;itemname&quot;.value
and then when u press submit button capture the click and populate the table with your values... and then submit
document.&quot;formname&quot;.submit
if u need more instructions please ask... and be more detailed in questions...
________

George
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top