Results 1 to 4 of 4

Thread: Linking to Google maps with button

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Location
    Paraparap
    Posts
    243
    Thanks
    30
    Thanked 66 Times in 31 Posts
    Rep Power
    213
    Reputation
    314

    Default Linking to Google maps with button

    Hi all,

    This is starting to give me the shitz. I'm not great with html and can't figure out why this isn't working. All I want to do is have a simple button that links to a google map destination. I've tried the following centered on London just as an example:

    Code:
    <FORM METHOD="LINK" ACTION="http://maps.google.com.au/maps?f=q&hl=en&geocode=&q=london&ie=UTF8&z=10&iwloc=addr">
    <INPUT TYPE="submit" VALUE="View on map">
    </FORM>
    Just defaults to google map home page. Also tried the following just using URL from Yahoo maps, works fine with Firefox but no good on IE.

    Code:
    <FORM METHOD="LINK" ACTION="http://maps.yahoo.com/#mvt=m&lat=51.506325&lon=-0.127144&zoom=11&q1=london">
    <INPUT TYPE="submit" VALUE="View on map">
    </FORM>
    Can do it on google maps in both firefox and IE with a straight forward <a href=etc, and am getting around it at the moment by using a button image instead of an actual button.

    Anyone got any ideas why I'm stuffing it up? Apart from being a newb.



Look Here ->
  • #2
    Senior Member
    Philquad's Avatar
    Join Date
    Jan 2008
    Location
    nelson bay
    Age
    55
    Posts
    3,872
    Thanks
    192
    Thanked 1,305 Times in 783 Posts
    Rep Power
    665
    Reputation
    16938

    Default

    gimme the page and link you want inserted
    the htm file, stick the linnk on it,zip it,il find it
    https://www.facebook.com/philquad68

  • #3
    Junior Member
    Join Date
    Jan 2008
    Location
    Paraparap
    Posts
    243
    Thanks
    30
    Thanked 66 Times in 31 Posts
    Rep Power
    213
    Reputation
    314

    Default

    Cheers for the offer mate but I can't insert the code into the actual page. The page runs a javascript looking for a value in a Microsoft access table and then runs the code from there, so it has to be able to run as a stand alone piece of html.

    here's a link to a page running the map link as a simple href


    If you copy the second bit of code into notepad and open it with firefox and IE you'll see why it's shyzing me.

  • #4
    Junior Member
    Join Date
    Jan 2008
    Location
    Paraparap
    Posts
    243
    Thanks
    30
    Thanked 66 Times in 31 Posts
    Rep Power
    213
    Reputation
    314

    Default

    bah! I'm an idiot
    Code:
    <input type=button onClick="location.href='http://maps.google.com.au/maps?hl=en&q=london&ie=UTF8&z=10&iwloc=addr'" value='View on map'>
    works fine

  • Bookmarks

    Posting Permissions

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