?

Log in

No account? Create an account

Fri, Dec. 16th, 2005, 12:00 pm
AJAXy vs RESTian

There is, it seems, a Soloman-esque dilemma that faces those who wish to be buzzword compliant.

Obviously a meaningful RESTian URL is important. EventQueue already has this

    # Show a year
    http://thegestalt.org/simon/eq/2005/ 
    # Show a month
    http://thegestalt.org/simon/eq/2005/12
    # Show a day
    http://thegestalt.org/simon/eq/2005/12/15
    # Show an event
    http://thegestalt.org/simon/eq/event/palm-datebook-007f9a18-000076

However certain aspects of navigation - moving between days, weeks and months and years would certainly benefit from some AJAX which would leave the url inconsistent with the display.

Week in particular would benefit from the ability to slide left and right by one day.

I suspect, however, that a meaningful URL is more important.

One solution, from Tom Insam, is to have

    http://thegestalt.org/simon/eq/#2005/12/15

etc and parse the parts in Javascript which seems a bit icky but might just work. Especially since it will allow the same URL to be shared whether the handler is mod_perl or cgi without the need for mod_rewrite.