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!

Wrtting vbscript in javascript

Status
Not open for further replies.

excalibur78

IS-IT--Management
Jan 3, 2001
66
US
How could I do this in javascript?

objForm.ADORecordset("RequestorEmail") = username

I tried just

<% objForm.ADORecordset("RequestorEmail") = username %>

but it didn't like it.
 
Are you talking about server-side or client-side JavaScript?

Adam
while(ignorance){perpetuate(violence,fear,hatred);life=life-1};
 
Guess it would be client-side. Executing it in a function in IE.
 
The ADORecordset object in VBScript is used to communicate with a database.

This is not possible in JavaScript. JavaScript is client-side only. In order to communicate with a Database, you'll need to utilize some sort of server-side scripting.

*cLFlaVA
----------------------------
Ham and Eggs walks into a bar and asks, "Can I have a beer please?"
The bartender replies, "I'm sorry, we don't serve breakfast.
 
At the top of your page put:

<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

...then do vbscript like you are and any javascript calls encompass with:

<script language='JavaScript' type='text/JavaScript'> </script>


...or vice versa, whichever you prefer or based on your needs.

boyd.gif

craig1442@mchsi.com
"Whom computers would destroy, they must first drive mad." - Anon​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top