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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.