On 04/08/2009 13:54, Andreas P. wrote:
> Dear Armin,
> Dear All,
> 
> I am writing again to this topic and I would like to have some help in order
> to integrate the calendar to the new version.
> 
> In map.phtml, the code for the calendar (Javascript) is the following:
> 
> 
> <!-- Reference Map -->
>         
>             <div id="refmap" class="refmap" style="width:210px;
> height:180px" >
>             
>             <div style="float: left;" id="calendar-container"></div>
> 
> <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");
>       
>       var mapurl = PM_XAJAX_LOCATION + 'x_load.php?'+SID+'&date='+l;
>       PM.Map.updateMap(mapurl, '');
>    }
> };
> 
>   Calendar.setup(
>     {
>       date         : '<?php echo ($_SESSION['date']) ?>',
>       flat         : "calendar-container",
>       flatCallback : dateChanged
>     }
>   );
> </script>
>             
> </div>        
> 
> 
> The same code (without "PM.Map" when calling updateMap(mapurl)) is in
> previous version of pmapper.


Half of the description is missing... Adding '&date=...' to the url for 
'x_load.php' will not change anything as long as you do not change the 
data reading & rendering chain afterwards in 'x_load.php' and maybe 
'map.php'. Did you do that? How did you do that?


> Here, v.4, the calendar is displayed very well, but it can not be connected
> with the MySQL database, as in previous version. Is there anything wrong? I
> repeat, that I use the same files (javascripts and css) in both version and
> the code with a small change. In the previous version, the calendar is
> connected with the MySQL DB from where I use data. In v.4, this cannot be
> done.
> 

What does it mean 'connecting the calendar to Mysql DB'? The calendar is 
just a Javascript library, how should it connect to a database? via an 
Ajax call? What should it do then?

I think the main problem is that you describe some small details of some 
functionality that does not allow to understand what you intend to 
achieve...

regards, armin

> Any help?
> 
> Thank you in advance!
> 
> 
> Andreas
> 
> 
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to