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

Dream the impossible dream....

Status
Not open for further replies.

FirstKnight

Programmer
Jun 19, 2002
1
ZA
Is it at all possible to pass a variable from VBScript Client side to VbScript Server side WITHOUT submitting the form? I want to create a recordset object that is filtered by a value from the clientside. The value comes from a listbox on a form, so if I could get the value of the listbox in the server side scrip it will also help.
 
I have never done this but it does appear to be possible. I came across the topic in a book called "Visual Basic Object and Component Handbook". There is a section in the book called "Remote Scripting and ASP Remote Objects". Here is a summary of the topic....

"Remote scripting allows you to write code to execute in Internet Explorer that reaches back through the Web to execute objects on the server. This gives your client-side code access to server-side rewources without making the user wait throught a roundtrip to the server....

To user remote scripting as described here you must be running IIS 4.0 or later as your Web server. However, you should be able to use any web browser with remote scripting because the underlying technology is implemented using a Java applet. Having said that, if you intend your client-side code to run in a brouwser other thatn Internet Explorer, you should write your script in Javascript...."

There is a little bit of infrastructure that needs to be in place to do this. Namely, there will be several files RS.HTM (contains standard client-side routines), RS.ASP (Standard Server-Side routines), RSProxy.class (a java applet which the routines in RS.HTM will dounload to your client and which handles communication with the server). These files will need to be in a directory called ScriptLibrary immediately under the root directroy for your web site.

If this sounds like it will work for you (and I believe it allows info to be passed to and from the server so it should) you should be able to find more info at
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top