Dynamic src files for javascript

Discussion in 'Javascript' started by afadich@gmail.com, Dec 1, 2005.

  1. Guest

    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
     
    , Dec 1, 2005
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve Richter

    <txt src= ...> equivalent of <img src= ...>

    Steve Richter, Feb 8, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    2,640
    Laurent Bugnion
    Feb 9, 2006
  2. Greg Johnson
    Replies:
    4
    Views:
    3,353
  3. Replies:
    1
    Views:
    1,846
    Alex Hunsley
    Mar 23, 2007
  4. pheadxdll
    Replies:
    16
    Views:
    5,741
    Neredbojias
    Jun 6, 2007
  5. Soren Vejrum
    Replies:
    4
    Views:
    1,019
    Lasse Reichstein Nielsen
    Jul 5, 2003
  6. Kurt Behn

    dynamic <img> src

    Kurt Behn, Jul 8, 2003, in forum: Javascript
    Replies:
    0
    Views:
    148
    Kurt Behn
    Jul 8, 2003
  7. dynamic src of IFRAME

    , Apr 27, 2005, in forum: Javascript
    Replies:
    10
    Views:
    352
    Thomas 'PointedEars' Lahn
    May 9, 2005
  8. seans

    dynamic src of IFRAME

    seans, Aug 30, 2005, in forum: Javascript
    Replies:
    2
    Views:
    267
    seans
    Aug 31, 2005
Loading...