Forum Moderators: coopster

Message Too Old, No Replies

Can PHP with AJAX make changes to the url?

like http://www.example.com/ajaxfile.php?put_something_here

         

canglan

12:58 pm on Aug 29, 2005 (gmt 0)

10+ Year Member



Hi folks,
I am currently doing a forum script project (using PHP/MySQL, and hopefully, some AJAX).

One concern is that if AJAX can handle $_GET and output its content to the url?

Say if my forum index page is called index.php, then if I click on a thread, it displays the thread AND changes the url to index.php?postid=1

Is this possible?

FYI, I plan to use Xajax library.

Thanks!

dcrombie

3:17 pm on Aug 29, 2005 (gmt 0)



In general, you EITHER use Ajax to update/fetch/display data, OR you go to a new URL that achieves the same effect. The latter being the fall-back for unsupported browsers. Using Ajax AND changing the URL makes little sense.