Bookmarkabale ajax calls with MVC routing

Posted by devzero on Stack Overflow See other posts from Stack Overflow or by devzero
Published on 2010-04-19T08:42:52Z Indexed on 2010/04/19 9:03 UTC
Read the original article Hit count: 217

Filed under:
|
|
|

I have a page with a menu that uses JQuery AJAX calls to populate the page with. To reflect any changes I update the URL with a #... instead of ?... or /... So an URL that originally reads : htpp://localhost/pages/index/id=1 would look like : http://localhost/#pages/index/id=1. If a user bookmarks this, and later comes back to the page, I wonder if it's possible to use the second URL in my route decoding, or if I have to load it blank, then use the same JS/Ajax to populate the page?

In my mind it is problematic to use Ajax in these cases if a user copies the link and mails it to a friend with JavaScript disabled.

edit#1: Fixed some spelling.

© Stack Overflow or respective owner

Related posts about AJAX

Related posts about jQuery