CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Can I call a Vbscript function from Javascript

Print topic Send  topic

Author Message
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
View profile  Send private message
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!!!!!!!
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.