Jump to content

adding ajax to a php calendar


svgmx5

Recommended Posts

I've been looking for hours on the net for a solution to this. Unfortunately i haven't found one. What i have is a php based calendar in which a user can navigate through the months. However i don't have clue on how to add ajax so the user can navigate the months with out refreshing the page. I've seen several tutorials on the net on how to do this. But i'm still a newbie at ajax, so i'm having issues understanding this. If someone here could shed some light and guide me in the right direction i would gladly appreciate it.

 

Heres my php next and previous months code

 

   echo"
[size=14pt]     <tr>
        <td colspan='7' align='center'>
             <a href='?month=$previousmonth&year=$previousyear'>«</a>
               $title $year  
             <a href='?month=$nextmonth&year=$nextyear'>»</a>
        </td>
</tr>";[/size]

 

From what i understand an on click function should be added to the link, thats the most i've understood

Link to comment
https://forums.phpfreaks.com/topic/182405-adding-ajax-to-a-php-calendar/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.