Is there a way to load the contents returned from a URL into a
JavaScript variable? Suppose a user picks an option from a popup list.
I want to pass that choice in a URL to a script on a server that runs a
query on a database. The value is returned from the URL and is
populated in a JavaScript variable. Something like:
function LookupFunc(Test String)
{
TheResult = script.loadValu eFrom =
"http://dbserver/LookupScript.ph p?TheValue=" + TestString;
alert(TheResult );
}
The goal is that I can lookup values "on the fly" rather than trying to
accommodate the choices before hand.
__
Scott Orsburn
Kaomso
I'm not clever enough to think of a cool signature.
JavaScript variable? Suppose a user picks an option from a popup list.
I want to pass that choice in a URL to a script on a server that runs a
query on a database. The value is returned from the URL and is
populated in a JavaScript variable. Something like:
function LookupFunc(Test String)
{
TheResult = script.loadValu eFrom =
"http://dbserver/LookupScript.ph p?TheValue=" + TestString;
alert(TheResult );
}
The goal is that I can lookup values "on the fly" rather than trying to
accommodate the choices before hand.
__
Scott Orsburn
Kaomso
I'm not clever enough to think of a cool signature.
Comment