Chickenfoot demo

Discussion in 'Documentation & Training Resources' started by Graham, Oct 30, 2006.

  1. Graham

    Graham Developer Staff Member

    http://synapsedirect.com/files/folders/user_guides/entry1084.aspx

    A short movie to show chickenfoot script working inside firefox 2.0 to automatically bring up the provider's address in Yahoo Maps.

  2. Jason

    Jason Developer / Handyman Staff Member

    That should help me a bit. What's with the flashing in the video ?
  3. Graham

    Graham Developer Staff Member

    Not sure what you're talking about ... I guess I'll have to download it and see.

  4. Graham

    Graham Developer Staff Member

    I don't see any flashing ... just viewed it now.

    It does look like the script itself is not correct ! But it seems to work.

  5. Graham

    Graham Developer Staff Member

  6. Graham

    Graham Developer Staff Member

    <pre id="pre">This is a step by step instruction on getting the script shown in the demo movie to work.</pre><pre id="pre"></pre>
    1. <pre id="pre">Go to http://maps.yahoo.com/ actually works for you. You may have to get a yahoo account. Use the non-flash maps version first and confirm that you can display your own address</pre>
    2. Install chickenfoot from here and confirm it works
    3. Now start up Synapse EMR, and login to the demo server. Go to the providers tab and find Dr Mitts
    4. Click on the Firefox icon next to the state and zip field
    5. When the http://127.0.0.1:8001/cgi-bin/searchprovider.html page appears, press F8 to show the chickenfoot editor
    6. Paste the code below into the editor ( you may have to press the new page icon ), and then press the green arrow to run the script
    7. If it works, the yahoo map should appear in a new tab
    <pre id="pre"></pre><pre id="pre">/ This chickenscript grabs the address details
    // and brings up the appropriate map

    try { street = find(/Number&amp;Street: (.*)/).groups[1]; }
    catch(e) {
    street = ''; // this is two single quotes
    }
    try { city = find(/City&amp;State: (.*)/).groups[1]; }
    catch(e) {
    city = '';
    }

    with(openTab('http://maps.yahoo.com/', true)) {
    enter("Address",street);
    enter("City",city);
    pick("United States");
    click("Get Map");
    }</pre>
  7. Jason

    Jason Developer / Handyman Staff Member

    I have the Yahoo Maps running for providers - very slick.

    If I click the firefox icon from Synapse (with no firefox windows open) I have to hit refresh to get the script to trigger (while viewing the http://127.0.0.1:8001/cgi-bin/searchprovider.html page)


    If Firefox is open (regardless of what the browser is browsing), I don't have to hit refresh (it automatically goes to the map).

  8. Graham

    Graham Developer Staff Member

    Well, I'm glad that I am not the only one to get this working!!

  9. Graham

    Graham Developer Staff Member

    [quote user="Jason"]

    If I click the firefox icon from Synapse (with no firefox windows open) I have to hit refresh to get the script to trigger (while viewing the http://127.0.0.1:8001/cgi-bin/searchprovider.html page)


    [/quote]

    Rob Miller, chickenfoot author, has confirmed that this is a known bug and will be fixed in the next release.

  10. Jason

    Jason Developer / Handyman Staff Member

    Excellent.
  11. Jason

    Jason Developer / Handyman Staff Member

    [quote user="Graham"]<pre id="pre">This is a step by step instruction on getting the script shown in the demo movie to work.</pre><pre id="pre"></pre>
    1. <pre id="pre">Go to http://maps.yahoo.com/ actually works for you. You may have to get a yahoo account. Use the non-flash maps version first and confirm that you can display your own address</pre>
    2. Install chickenfoot from here and confirm it works
    3. Now start up Synapse EMR, and login to the demo server. Go to the providers tab and find Dr Mitts
    4. Click on the Firefox icon next to the state and zip field
    5. When the http://127.0.0.1:8001/cgi-bin/searchprovider.html page appears, press F8 to show the chickenfoot editor
    6. Paste the code below into the editor ( you may have to press the new page icon ), and then press the green arrow to run the script
    7. If it works, the yahoo map should appear in a new tab
    <pre id="pre"></pre><pre id="pre">/ This chickenscript grabs the address details
    // and brings up the appropriate map

    try { street = find(/Number&amp;Street: (.*)/).groups[1]; }
    catch(e) {
    street = ''; // this is two single quotes
    }
    try { city = find(/City&amp;State: (.*)/).groups[1]; }
    catch(e) {
    city = '';
    }

    with(openTab('http://maps.yahoo.com/', true)) {
    enter("Address",street);
    enter("City",city);
    pick("United States");
    click("Get Map");
    }</pre>

    [/quote]

    Does this still work ?
  12. Jason

    Jason Developer / Handyman Staff Member

    Update on Chickenfoot scripts

    URLs have changed ... see this post for details. "Trigger URLs will need to be updated".

    http://synapsedirect.com/forums/permalink/8004/8003/ShowThread.aspx#8003

Share This Page