teresawhlr
Posts: 10
|
| Posted: 02/20/2006, 6:57 AM |
|
I need to execute a sql update statement after retrieving the value return from a javascript function. Can I access the connection object from Javascript? If not, how can I call a vbscript function from Javascript to execute the sql update statement?
Any help would be greatly appreciated.
Teresa
|
 |
 |
marcwolf
Posts: 361
|
| Posted: 02/20/2006, 3:44 PM |
|
Hi Teresa.
With IE it is possible to commmunicate with the server from the browser but I believe it is IE specific.
What you migh want to look at is AJAX and have a XML back-channel to the server.
We have done the same with iframes very successfully.
1. Create a page with an iframe.
2. When you have your javascript value - set the iframe's location to a ASP page and pass the value in as part of the querystring
3. Called page will generate cross-frame javascript to update values on the parent page
As mentioned we use this all of the time to create very dynamic web applications that gives the user a very rich interface.
Hope this helps
Dave
_________________
' Coding Coding Coding
Keep Those Keyboards Coding.
Raw Code!!!!!!!
|
 |
 |
|