Is there a way to change page names in PHP/AJAX driven site?
Posted: Sun Dec 14, 2008 10:03 am
Hi
I am, unfortunately, not versed in PHP, but am working with a programmer who is. We have developed a travel site where he used both PHP and AJAX for hotel/travel search functions, and I did the design part of the site in Dreamweaver based on a template I designed.
The site works great so far with one glaring problem that's driving me nuts but the programmer says can not be solved if we are to leave the AJAX in place.
The problem is, because he implemented pagewrapping (intentionally for functionality as I understand) the name of the page stays the same all the time, regardless of what the user is actually doing, which I think is a very bad user experience.
For example, user is on spahotels page, then does a search from the hotel search function in the left nav which is on all pages. Let's say he searches for Tokyo business hotels. The results will show up "on" the spahotels page, so the title and url still say spahotels.php while the content he is looking at is entirely unrelated. I think this is a bad user experience.
The programmer suggested that I look for a javascript to change the page name...does this make sense? Is there a better way to handle this issue? He says he spent two days making it work in pagewrapping and is not too happy that I don't like the page name staying the same issue...but it just makes no sense to me that the user keeps seeing spahotels when he is looking at hotels in tokyo.
The page if you want to see an example is
http://www.bluehippotravel.com/spahotels.php
-obvoiusly you will see it is rough...we are still working on it.
Thanks so much in advance for your help!
I am, unfortunately, not versed in PHP, but am working with a programmer who is. We have developed a travel site where he used both PHP and AJAX for hotel/travel search functions, and I did the design part of the site in Dreamweaver based on a template I designed.
The site works great so far with one glaring problem that's driving me nuts but the programmer says can not be solved if we are to leave the AJAX in place.
The problem is, because he implemented pagewrapping (intentionally for functionality as I understand) the name of the page stays the same all the time, regardless of what the user is actually doing, which I think is a very bad user experience.
For example, user is on spahotels page, then does a search from the hotel search function in the left nav which is on all pages. Let's say he searches for Tokyo business hotels. The results will show up "on" the spahotels page, so the title and url still say spahotels.php while the content he is looking at is entirely unrelated. I think this is a bad user experience.
The programmer suggested that I look for a javascript to change the page name...does this make sense? Is there a better way to handle this issue? He says he spent two days making it work in pagewrapping and is not too happy that I don't like the page name staying the same issue...but it just makes no sense to me that the user keeps seeing spahotels when he is looking at hotels in tokyo.
The page if you want to see an example is
http://www.bluehippotravel.com/spahotels.php
-obvoiusly you will see it is rough...we are still working on it.
Thanks so much in advance for your help!