• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

Php Real Estate Script

So to come to the map it self now.......well, the ideal thing to do with the map is when choosing the region and the results update the map should update too to the right region.....I have the regions and their equivalent location to the map
Nicosia channel=gr.talent.channel.cyprus&ulx=525936&uly=3885248&w=14688&h=8960
Ayia Napa

there is also a Javascript i put it in the code section below and to show you what i had working before making this whole functional
Its not working dynamically its just the info I gave you above.....
is there a way to make it work?

<script type="text/javascript">
	// Send a message to the map via the map proxy frame, toggling the proxy's
    // size to indicate there is a message ready to be read
    function sendMessageToFrame(message) {
        var elem = top.document.getElementById('mapFrameProxy');
        elem.contentWindow.location = 'http://www.col.com.cy:8190/webcruiserpanel/InnerFrameProxy.html#' + message + '&frame=mapFrame';
        elem.width = elem.width > 50 ? 50 : 100;
    function showArea(areas) {
    	var area = (areas.options[areas.selectedIndex].value);
//    	alert('Show area ' + area);

<select name="city" id="city" onchange="showArea(this)")">
                <option>Select City</option>
                <option value="channel=gr.talent.channel.cyprus&amp;ulx=525936&amp;uly=3885248&amp;w=14688&amp;h=8960">Nicosia</option>
                <option value="channel=gr.talent.channel.cyprus&amp;ulx=549744&amp;uly=3859640&amp;w=14688&amp;h=8960">Larnaca</option>
                <option value="channel=gr.talent.channel.cyprus&amp;ulx=497440&amp;uly=3833144&amp;w=14688&amp;h=8960">Limassol</option>
                <option value="channel=gr.talent.channel.cyprus&amp;ulx=440224&amp;uly=3843544&amp;w=14688&amp;h=8960">Paphos</option>
                <option value="channel=gr.talent.channel.cyprus&amp;ulx=589811.9510425703&amp;uly=3871441.5857088603&amp;w=2334&amp;h=1508">Ayia Napa</option>

Open in new window

  • 2
1 Solution
What you had before was an onclick event trigger to change the map when a new option was selected.  That is not really going to be an option in your case because we need the page refresh to trigger the queries.  I will have a look at for you tomorrow morning :-)
dino_angelidesAuthor Commented:
Ok John, thx a lot!!! :)
also I am including the iframe for the map if that will be helpful!!!
<iframe name="mapFrame" id="mapFrame" frameborder="0" style="position:absolute; left:983; top:500; background:transparent; border:1px solid rgb(191,219,247);"
      src="http://www.col.com.cy:8190/webcruiserpanel/template-no-border.html?channel=gr.talent.channel.cyprus&amp;locale=el" width="983" height="500"> </iframe>

Open in new window

dino_angelidesAuthor Commented:
I tried adding the channels for the map to the list/menu  but it did not work
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now