Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19

Thread: map widget

  1. #1
    Join Date
    Oct 2008
    Posts
    2

    Lightbulb map widget

    Does anyone know how to code a small widget that allow users to type in address and get the direct URL of Google.com direction page for that address. Also add image button. If you can, I'll give you credit.
    Like this
    ________________________
    Enter Full Address
    Address: | box for entering |
    City: | box for entering |
    State: | box for entering |
    Zip: |box for entering |
    Button Build Map Link (Appears below a line stays within widget not another page.)
    ________________________
    Your Url link is available.
    Copy Paste. Thank you.

    | box showing URL link in format <a href="link"><img src="http://www.domain.com/images/mapbutton.gif" alt="Get directions NOW!"></a> |
    ________________________

  2. #2
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    button on page one:
    --Reads the the address.txt from this home and reads it into a table.
    table = TextFile.ReadToTable("AutoPlay\\houses\\house1\\ad dress.txt");


    houseinfo = TextFile.ReadToString("AutoPlay\\houses\\house1\\i nfo.txt");
    strHouse = "house1"
    Page.Jump("page2");



    button on page two:
    --Checks to see if the end user is on line.
    connected = HTTP.TestConnection("http://www.indigorose.com", 20, 80, nil, nil);
    if connected then
    --Insert your internet related action here
    else
    Dialog.Message("Internet Error", "Sorry, You are not connected to the internet. You will not be able to view this map until you are connected.", MB_OK, MB_ICONEXCLAMATION, MB_DEFBUTTON1);

    end


    table[1] = String.Replace (table[1], " ", "+")
    table[2] = String.Replace (table[2], " ", "+")
    File.OpenURL("http://maps.yahoo.com/maps_result?addr=" .. table[1] .. "&csz=" .. table[2] .. "&country=us&new=1&name=&qty=");
    Attached Files
    Last edited by Bruce; 10-15-2008 at 04:25 PM. Reason: coding

  3. #3
    Join Date
    May 2006
    Posts
    5,380
    hey, thats pretty cool, i can work that into an app im making
    Open your eyes to Narcissism, Don't let her destroy your life!!

  4. #4
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    Quote Originally Posted by RizlaUK View Post
    hey, thats pretty cool, i can work that into an app im making
    Any time I can help u Riza, that's gotta be good.

  5. #5
    Join Date
    Oct 2008
    Posts
    2

    question

    Do I need address.txt and info.txt file with 777 permissions?
    What will be best code line to call for the address.apz on the page?
    Very nice widget, love it. Thanks.

  6. #6
    Join Date
    Feb 2006
    Posts
    346
    Thanks for the example.

    Is it possible to enter the address into an input object - click a save button, it would then save the txt file with address name and populate into a combobox. On combobox click it would load the address from the text file and load yahoo maps?

  7. #7
    Join Date
    Feb 2006
    Posts
    346
    Hello all - I made a few changes to this project but, got stuck with some code. Can someon eplease help? Thanks See attached
    Attached Files

  8. #8
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    what help do you want? what problems are you running in to?


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  9. #9
    Join Date
    Feb 2006
    Posts
    346
    Sorry - I posted the question in the app on the first page.

    Basically I want to have an input object that I can type the address into and a save button that will save the text as the 1st line of the address (1566Goodwin Ave). This way we can store address and populate them in the combo - On select of address it would then load in a web object. I got the combobox to somewhat work - Could not get it to save as the address line or get it into a web object. Thanks

  10. #10
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Like the attached?

    I suspect your wanting to do "more"; but it does what you're asking..


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  11. #11
    Join Date
    Feb 2006
    Posts
    346
    Thanks for the quick reply -

    Yes - Currently the file is deleted. I want to be able to save the txt files and have them populate everytime the app is opened. - Also would like to get Map It to load into a web object. Is that possible? Thanks again

  12. #12
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Quote Originally Posted by abnrange View Post
    Thanks for the quick reply -

    Yes - Currently the file is deleted. I want to be able to save the txt files and have them populate everytime the app is opened. - Also would like to get Map It to load into a web object. Is that possible? Thanks again
    So you'll need to create unique names for the .txt files (personally; I'd use an sqlite database...) and scan them on startup.

    you mean you would like the page to open "in" ams, instead of an external browser? Have you tried using the web object?


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  13. #13
    Join Date
    Feb 2006
    Posts
    346
    Thanks again for the quick reply.

    I don't know much about SQL or even where to start to make it work.

    Yes, I would like the page to open within AMS if possible!

    Thanks again

  14. #14
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    Then you're probably better off using unique names in a specific folder you can scan (File.Find()) and load into your combo box.

    To view the page w/in AMS -- use the web object.

    -josh

    btw: You'd probably get better responses by posting your questions in the AMS specific forum.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  15. #15
    Join Date
    Feb 2006
    Posts
    346
    I must have accidentally psoted in the wrong forum. I think this thread is also under AMS 7.5.

    I did try the web object with saving unquie name but failed to make it work.

    Thanks for your help

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Pan Map Image: Flash or AMS?
    By pakapaka in forum AutoPlay Media Studio 7.5
    Replies: 2
    Last Post: 09-03-2008, 12:30 AM
  2. Using ListBox to map network drive and run app
    By morci in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 01-05-2006, 03:36 PM
  3. Table of Contents/ Project Map
    By RobertB in forum AutoPlay Media Studio 6.0
    Replies: 8
    Last Post: 09-22-2005, 10:00 PM
  4. Click and Drag Map with animated icons??
    By brendang in forum AutoPlay Media Studio 5.0
    Replies: 9
    Last Post: 05-01-2005, 10:51 PM
  5. Slider Widget, Color Picker Widget
    By JimS in forum AutoPlay Media Studio 4.0
    Replies: 5
    Last Post: 05-23-2003, 08:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts