Dynamic src files for javascript

A

afadich

Hi,

I am creating a form (dialup signup form) with javascript enhancements
(more like requirements tbh). I have all of the form finished. I am
trying to add this functionality:

When someone enters their address a function is called that checks that
address to a database of addresses (Quickbase). If it matches the
address a popup window comes up saying they can recieve
dsl/fiber/wireless ect.

The way I do the query is through a url encoded html address that looks
something like this.
https://www.quickbase.com/databasename?API_DoQuery&queryinformation&jsa=1
The jsa=1 returns the records as a java script array. Here is an
example of the return


var qdb_numcols = 3;
var qdb_numrows = 132; <-- I cut out all but 1

var qdb_heading = new Array();

qdb_heading[0] = "County";
qdb_heading[1] = "City";
qdb_heading[2] = "PackageTotal";

var qdb_data = new Array();

qdb_data[0] = new Array();
qdb_data[0][0] = "Chelan County";
qdb_data[0][1] = "Wenatchee";
qdb_data[0][2] = "Fiber Optics | 3Mbps / 384k | $35/mo | $10
Install";

I do these queries and have them as javascript sources at beginning of
my pages all the time, but with this particular problem these html
addresses are not static, they are dynamic depending on the address a
person puts in on the form.

I can create the address properly with a function but I don't know how
to get the information from the address after the page has been loaded.

Any help would be greatly appreciated
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top