http://127.0.0.1:8001/searchzip.html

Discussion in 'Chickenfoot Scripts' started by Graham, Nov 3, 2006.

  1. Graham

    Graham Developer Staff Member

    This is a script that searches for the New Zealand postcode using the above link that is created by the Firefox icon on the patient details<pre id="pre">try { number = find(/Number: ([\w\s]+)/).groups[1]; }
    catch(e) {
    number = ''; // a pair of single quotes here
    }
    try { street = find(/Street: (.*)/).groups[1]; }
    catch(e) {
    street = '';
    }
    try { suburb = find(/Suburb: (.*)/).groups[1]; }
    catch(e) {
    suburb = '';
    }
    try { city = find(/City: (.*)/).groups[1]; }
    catch(e) {
    city = '';
    }

    with(openTab('http://www.nzpost.co.nz/Cultures/en-NZ/OnlineTools/PostCodeFinder/', true)) {
    enter("Number",number)
    enter("Street Name",street)
    enter("Suburb",suburb)
    enter("City",city)
    click("SubmitAddressSearchImageButton")
    }


    </pre>
  2. Graham

    Graham Developer Staff Member

    This script uses the same trigger page to bring up the patient's address on googlemaps.

  3. Jason

    Jason Developer / Handyman Staff Member

    Attached Files:

Share This Page