Mark (poisonkitty) wrote,

AJAX devirginization

I wrote my first AJAX web application this week in Symfony. It's a calendar widget that loads events for a given day right below it when you click on the day. My next task is to make it scroll from month to month without a page refresh. With Symfony, it's actually a little bit easier doing it this way than it would be to have a page refresh.

Update: got the month scroller working without much of a problem. Basically, the same page that you would have to develop without ajax still needs to work, but instead of wrapping with a layout (header, footer, etc), it just sends directly via xml to your page. You specify which div to stuff your contents into. In the case of the calendar scroller, it was the canendar container itself that needed to get replaced. It really is pretty cool. I don't know what the hell I'm going to do when I need to debug this, though.
  • Post a new comment


    default userpic

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.