Simon Wistow (deflatermouse) wrote,
Simon Wistow
deflatermouse

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.

Tags: ajax, benefit, buzzword, cgi, dilemma, esque, faces, icky, inconsistent, javascript, meaningful url, mod perl, moving, navigation, obviously, parse, soloman
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    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.
  • 0 comments