Slashdot Mirror


Ajax Back, Forward, Reload and PHP

IdaAshley writes "A major challenge of Asynchronous JavaScript and XML (Ajax)-driven Web sites is the lack of a Back button. Mike Brittain discusses ways to get around this obstacle in part 1 of the 'Developing PHP the Ajax way' series." From the article: "The Web is a page-by-page medium. The backward and forward buttons on your browser's toolbar direct the browser from page to page. When Macromedia's Flash became all of the rage, developers and users started to see how Rich Internet Applications (RIAs) break this metaphor. You might click around a few sites, land on a Flash-based Web site, then click around in it for a few minutes. One click of the Back button and the ride is over. Rather than going one step backward within the Flash site, you completely lose your place."

1 of 52 comments (clear)

  1. Re:To put it simply by RingDev · · Score: 4, Interesting

    My thought would be to set the index page up to read that history stack cookie and redirect the browser to a live page. That way, if the user hit's the back button, they get kicked back to the index page. The index page slices the top item off the stack and redirects the user to the live page with the top item on the history stack as the target.

    Not a FF plug in, but it would be a seamless solution to the back button issue for a website.

    -Rick

    --
    "Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs