modifying query string with no page refresh


Posted on 16th Feb 2014 07:03 pm by admin

Hi everybody,
I've tried to get info about my problem all over the internet but i didn't find out what I need.
The question is: how can I modify the querystring in PHP with no page refresh?
Facebook uses this feature in its images gallery. E.g. When you click on next photo, the query string changes (using Ajax I suppose) and it shows a new photo without refreshing the whole page. The Ajax appends an anchor (#) and the values od the required photo to the url.
I am building an image gallery that works this way:
1) Clicking on thumbnails on thumb page you reach a page called display.php with the enlargement of the required photo and links for next and previous image.
2) Actually, clicking on next and prev, the whole page is being refreshed. I'd like to avoid that using the fb's solution for its gallery.
Thanx in advance

No comments posted yet

Your Answer:

Login to answer
293 Like 8 Dislike
Previous forums Next forums
Other forums

fopen() security
As i understood the usage of fopen() for it to function correctly the Dir you write to has to be rw

"From field" in PHP email form
I used a wizard to create a PHP email form. I was able to customize it with the exception of the Fr

setcookie and isset($_COOKIE(name)) seem very finnicky.
I'm currently playing around with a user system with login and registration. I'm trying to use cooki

Multiple WHILE loops help
Hi there. I'm writing an application that is pulling and displaying results for real estate listing

php + mysql count consecutive data
I have a database of values and I want to work out how to display them if the values match a consecu

Typedef struct vs just struct
Anyone know the rationale for using typedef for structs when a struct is itself a typedef? I have s

Get to know your fellow coder
I think it's time we got personal around here. There's a lot of code swapping and a few members kno

question about header() security
is is safe to just use the header() function to redirect someone if they are, say, not logged in? or

Problem with DB connection
Hello there! I'm new to this forum and I'm new to PHP coding also. I wrote something that doesn't ma

login and redirect
hello! can someone help me.. can you give me an idea.. I want to make a login page and redirects it

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash