Navigation
0 users online :: 0 Guests and 0 Registered
Records in this category
- 04. What are the requirements to install and use Locator Maps?
- 19. Is it possible to install Locator Map to WordPress (Joomla, Drupal, other CMS) website?
- 18. Is it possible to update the map dynamically with a PHP/Perl/ASP script generating an appropriate XML "on the fly"?
- 14. How to change the background color of the Locator Map?
- 01. How do I install the Locator Map on a webpage?
- 15. How to make the background of the map transparent?
- 16. How to set an image as a background for the map?
- 11. How to change the names on the Locator Map (countries, states, regions etc)?
- 08. How to change the colors of each region on the map?
- 09. How to change the colors of texts on the map?
- 05. How to open some URL when a user clicks on the map?
- 07. How to open a URL in a new window?
- 12. How to display some data in a popup window when a user moves the mouse over a region?
- 13. Is it possible to display a formatted text in a popup window?
- 10. How to change colors of a popup window?
- 20. What is the difference between Locator Map 3.0 and 4.0?
- 17. How to display some data on the page when a user clicks a region?
- 02. How to install Locator Map 4.0 to my website (detailed description)?
- 03. Can I test the map locally?
- 06. I tried to add a link to a state in the map, but it is not working. Why?
Tags
Locator Maps » Version 4.0
ID #1011
18. Is it possible to update the map dynamically with a PHP/Perl/ASP script generating an appropriate XML "on the fly"?
It is possible. You need to use Flashvars to pass a dynamic XML to the map.
If you are using the SWFObject method, please refer to the following sample code:
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars= {
xmlfile1: "locator_map_script.php",
datafile: "data.swf"
};
var params = {
wmode: "transparent"
};
swfobject.embedSWF("locator_map.swf", "Map", "500", "400", "9.0.0", "", flashvars, params);
</script>
<div id="Map"> </div>
If you are using the non-SWFObject method, please refer to the following sample code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="500" height="400" id="locator_map" align="middle"> <param name="allowScriptAccess" value="sameDomain" /> <param name="movie" value="locator_map.swf" /> <param name=FlashVars value="xmlfile1=locator_map_script.php&datafile=data.swf"> <param name="quality" value="high" /> <param name="bgcolor" value="#FFFFFF" /> <embed src="locator_map.swf?xmlfile1=locator_map_script.php&datafile=data.swf" quality="high" bgcolor="#FFFFFF" width="500" height="400" name="locator_map" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /> </object>
The script must create and return a valid XML file to the output. You can use PHP, ASP, Perl or any other script languages for this.
Tags: -
Related entries:
- 14. How to change the background color of the Locator Map?
- 01. How do I install the Locator Map on a webpage?
- 16. How to set an image as a background for the map?
- 17. How to display some data on the page when a user clicks a region?
- 02. How to install Locator Map 4.0 to my website (detailed description)?
Last update: 2011-04-28 07:50
Author: Fla-shop Team
Revision: 1.4
You cannot comment on this entry