Printable Version of Topic

Click here to view this topic in its original format

HTMLHelp Forums _ Client-side Scripting _ AJAX - bookmarking a saved page

Posted by: thaiscorpion Jun 17 2011, 12:08 PM

Hello again!.
Just a quick one, im making a login for my web page and i have a start screen with images in the background and in the center a div and ive included my start.php file inside it.

i have 3 php files
1- my start div with 2 links login, register
2- my registration div
3- my login div

since the background and some other links in the background are the same in all pages i though i should use ajax to change the contents of the div but because my actual page index.php starts with start.php included, i cant bookmark the login screen i have to click on the login button.

I hope i explained my problem properly biggrin.gif if anyone doesnt understand just say so ill try to explain it better!

- Thaiscorpion

Posted by: Christian J Jun 17 2011, 01:55 PM

QUOTE
the background and some other links in the background are the same in all pages

I don't think that's a good reason to use Ajax. You might as well use frames (not recommended either).

It seems possible to bookmark an Ajax-generated page state by adding Ajax parameters in the URL hash, as explained on http://www.contentwithstyle.co.uk/content/fixing-the-back-button-and-enabling-bookmarking-for-ajax-apps/ --but why go to all this trouble when you can simply create separate web pages?


Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)