faqts : Computers : Programming : Languages : Asp : ASP/VBScript : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

0 of 20 people (0%) answered Yes
Recently 0 of 10 people (0%) answered Yes

Entry

How can I pass a RecordSet to a subroutine written in vbscript - called by OnClick or something ?

Mar 23rd, 2004 00:18
Jason Benson, Sara Forghani,


OnClick and other javascript methods are for the client side.

When you're dealing with recordsets you want to call them from server 
side.

A simple example using a function or sub.

<%

Sub WriteVariable(myRSvar)

Response.Write myRSvar

End Sub


WriteVariable "Hello World"

%>

Would output "Hello World"

Subs and Functions should always be called using server side VB and 
unfortunately cannot interact with client side Javascript (onclick 
events).

hope that helps
jb



© 1999-2004 Synop Pty Ltd