Hello Armin and all,
I would like to call functions showloading() and updateMap(mapurl) from
map.phtml.
How I can do so? I would like to call these two functions from map.phtml as
I have integrated a javascript calendar in div section of Reference Map. I
have done the same in v.3.2 and I was able to call them as they are
(showloading() , updateMap(mapurl)).
Unfortunately, I can't do the same in v.4
Here is my code in v.3.2 that works fine:
<script type="text/javascript">
function dateChanged(calendar) {
if (calendar.dateClicked) {
var y = calendar.date.getFullYear();
var m = calendar.date.getMonth(); // integer, 0..11
var d = calendar.date.getDate(); // integer, 1..31
var l = calendar.date.print("%Y/%m/%d");
showloading();
// var mapurl = PM_XAJAX_LOCATION + 'x_load.php?'+SID;
var mapurl = PM_XAJAX_LOCATION + 'x_load.php?'+SID+'&date='+l +
'&resultlayer=remove';
updateMap(mapurl);
}
};
Calendar.setup(
{
date : '<?php echo $_SESSION['date']?>',
flat : "calendar-container",
flatCallback : dateChanged
}
);
</script>
Could anyone give me help on how I can integrate the same code in v.4?
Thank you in advance!
Regards,
Andreas
--
View this message in context:
http://www.nabble.com/call-functions-showloading-and-updateMap%28mapurl%29-from-pmapper-map.phtml-v.4-tp24426013p24426013.html
Sent from the pmapper users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users