Solemn Phoenix
Member
- Joined
- Feb 7, 2003
- Messages
- 10
And yes, it needs to be explained...
I load a page that has server-side vbscript and client-side javascript.
I use javascript on runat=server buttons and at SOME point (after everything has finished) I want to create a connection to a database FROM THE SERVER (cant have all the clients connecting straight into it) and input the data there.
It seriously sounds like calling server-side code from client-side, and I *know* thats silly... but Im trying to figure a way around it.
Having both client- and server- side code on a button will not work, since the server will run it at once, while the client waits for input...
Can I somehow "delay" server-side code?
waiting for an event to happen/trigger it?
Ive also thought of opening another window-passing the data to it- and server-side running the connection to DB, then closing it immediately...
but thats not exactly a dream situation...
anyone?
Note: ALL client-side scripting has to be javascript as a requirement (although if theres a solution in vbscript, Id be more than happy to hear it).
I load a page that has server-side vbscript and client-side javascript.
I use javascript on runat=server buttons and at SOME point (after everything has finished) I want to create a connection to a database FROM THE SERVER (cant have all the clients connecting straight into it) and input the data there.
It seriously sounds like calling server-side code from client-side, and I *know* thats silly... but Im trying to figure a way around it.
Having both client- and server- side code on a button will not work, since the server will run it at once, while the client waits for input...
Can I somehow "delay" server-side code?
waiting for an event to happen/trigger it?
Ive also thought of opening another window-passing the data to it- and server-side running the connection to DB, then closing it immediately...
but thats not exactly a dream situation...
anyone?
Note: ALL client-side scripting has to be javascript as a requirement (although if theres a solution in vbscript, Id be more than happy to hear it).