SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    if ($zee == "Guru") { $zee--;}
    Join Date
    Nov 2005
    Location
    Karachi - Pakistan
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Javascript Parameter with URL

    Hi

    I have a situation. I have a list of 1000 retailers in USA. I want that their GOOGLE MAP to show in a POPUP. I have done this. But for this purpose I must hae to ahve 1000 Googal Map files.

    Another slution is that passing the address with url from the list page to some script, and that script shows the Google Map of that address in the POPUP. But i want to know HOw to do this in JAVASCRIPT or other as NO DATABASE OR PHP/ASP I USED. ITS A SIMPLE HTML.

    PLEASE GUIDE !

  2. #2
    American't awestmoreland's Avatar
    Join Date
    Sep 2002
    Location
    Grand Rapids, MI
    Posts
    1,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try this: DEMO

    Given your location, I tried to pick an address close to you, but it seems that Google Maps doesn't have any coverage of Asia. That seems odd however as Google Earth has coverage.


    Andy
    From the English nation to a US location.

  3. #3
    if ($zee == "Guru") { $zee--;}
    Join Date
    Nov 2005
    Location
    Karachi - Pakistan
    Posts
    1,134
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your Reply ANDY. But that is not I was looking for.
    I want to pass the address to my function file. and i m showing the map via API.

    like, www.mywebsite.com?address="some%20address%20here"

    i want the file to get "some%20address%20here"
    out of the url

  4. #4
    ✯✯✯ silver trophybronze trophy php_daemon's Avatar
    Join Date
    Mar 2006
    Posts
    5,284
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I'm not sure I understand what do you want to do. You now have a js function showmap(page), so you can pass that url to this function instead of just the filename of a file on your server, no?
    Saul

  5. #5
    SitePoint Enthusiast
    Join Date
    May 2005
    Posts
    50
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Perhaps you're looking for something like document.location.search
    that returns the part of the URL that's after the ?

    Once you get that information you can pass that to the server...

    See http://developer.mozilla.org/en/docs...indow.location for more complete information


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
  •