Jump to content

michalc

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

michalc's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi, I've just written a script to generate a Google XML Sitemap for an (admittedly small) site. HTTP header-wise, all it does is set the mime type as "application/xml". However, I have realised that the sitemap itself does not send a last-modified date, or respond appropriately to if-modified-since request. I was wondering what people's opinion on this is. Should I bother setting up the last-modified date at the most recent date in the Sitemap, and setup an if-modified-since response for the Sitemap itself? Michal.
  2. Ah... I didn't realise the hash wasn't sent to the server initially: that is annoying. (But thanks for letting me know before I went completely down the wrong path). I have just checked on Facebook actually: it now uses Ajax for various things, and it sets the hash appropriately. I copied the address of my profile: home.php#/profile.php?id=[myidhere] into a browser with Javascript turned off, and it did not show my profile, it showed the general home page at home.php. So I guess if they're not to worried about it, maybe I shouldn't be...? Michal.
  3. Hi, I'm trying to make an Ajax gallery, and (using Mootools and HistoryManager) I can: - Set the address hash when changing photos (e.g. for the 4th photo the address ends with #photo(4) etc..) - Read the address hash when manually changing the address This degrades to a non-ajaxed gallery: - So links to larger images are of the form photos/4/ say (which are converted to say photos.php?num=4 using .htaccess), and the correct image shown using a bit of php - In these "non ajax" pages, I can have some javascript that automatically forwards the user from photos/4/ say to #photos(4) if javascript is enabled. Thus this automatically "upgrades" to the ajax gallery. However, I would also like to handle the case where a non-javscript user uses one of the ajax hash addresses. Say they get a link from a friend ending in #photos(4). I have thought about processing the hash server-side, and automatically forwarding to /photos/4/, but then if the user has javascript turned-on, they will be forwarded to #photos(4) by the automatic-upgrading Javascript, and so end up in an endless loop! Is there a way to handle the case of a non-javascript user using a hash address, and still show the correct photo? Michal.
×
×
  • 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.