PHP Classes

return map to div

Recommend this page to a friend!

      Map Builder  >  All threads  >  return map to div  >  (Un) Subscribe thread alerts  
Subject:return map to div
Summary:show map into div
Messages:2
Author:milton luiz b jorge
Date:2017-05-08 01:05:50
 

  1. return map to div   Reply   Report abuse  
Picture of milton luiz b jorge milton luiz b jorge - 2017-05-08 01:05:50
First, congratulations! Is a best map script.
Thanks for share.

Sir, pls, help.
I have this script, than call mapa1.php

in mapa1.php is all ok. (if I run just mapa1, I have a map correctly).
<?php
....
...
?>
<div id="mapa"/>
<script>
$(document).ready(function () {
...
$("#regionais").change(function(){
regionid=$("#region").val();
$.ajax({
type:"GET",
url: "adm/geo_region/mapa1.php",
data: "regionid="+regionid,
success: function(data) {
("#mapa").fadeIn("slow").html(data);
}
});
});
...
});
</script>
<?php
?>

  2. Re: return map to div   Reply   Report abuse  
Picture of Vagharshak Tozalakyan Vagharshak Tozalakyan - 2018-03-11 14:28:51 - In reply to message 1 from milton luiz b jorge
This class generates JavaScript code, so loading output by AJAX, as in your sample, will not work.