Two Layer Presentation

Discussion in 'Programming' started by old_expat, Jul 31, 2006.

  1. #1
    I'm hoping someone can tell me if this is reliable, and if so, the best way to go about it.

    First, I don't want to use javascript. I'm happy with PHP and I have heard that IFrames can do this, I just don't know how.

    The page will have a largeish map, probably 500px wide and 1000px high. It will have imagemap hotspots at a number (probably 25) of locations.

    When a location is clicked, I would like to be able to show a <div>lots of info pulled from a mysql database</div> superimposed on the map.

    I would guess that opening a new window is one way. But it would be better (I think) to have a popup style window (especially a borderless one) hover over the original map. I know how to do it with javascript, but I'm concerned about users who have JS turned off or who have popup blockers.

    Recommendations and opinions please.
     
    old_expat, Jul 31, 2006 IP
  2. haentz

    haentz Peon

    Messages:
    78
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sounds like you need to incorporate some AJAX techniques. Which basically means JavaScript. If you click a hotspot, a Javascript-Function is triggered, whcich pulls the desired information from a PHP-Script and writes a DIV-Layer (no problems with Popup-Blockers here) with the information. Of course users need to have JS enabled.
    If you want to work without JS, your page has to be a PHP-Script by itself, whcich gets reloaded on every click on your map and writes the DIV with the information statically.
    I would definitly favor the JS/Ajax-Version ;)

    Kind regards, Hans
     
    haentz, Aug 1, 2006 IP
  3. klown

    klown Peon

    Messages:
    2,093
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can do what you want in multiple ways, one is ajax from above, which is pretty damn easy to implement, and if you want i can send u the code for a simple ajax system that includes php.

    You can also just make it so when you click it will query a new page in an iframe.

    The best way for this is to use ajax. PM me if you want help
     
    klown, Aug 1, 2006 IP
  4. old_expat

    old_expat Peon

    Messages:
    188
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #4
    PM sent ..
     
    old_expat, Aug 2, 2006 IP
  5. talentcoder

    talentcoder Peon

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    you may want to take a look at talentcoder.com, check out AJAX for professionals.
     
    talentcoder, Aug 3, 2006 IP