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

styling a RadioButtonList
HiI need to have a radio button and close to it, its lable, then a space then another set of those.

is_dir() problem
Hello,

I'm buidling a php scripts that dynamically get's subfolders from a specific folder.

BB_Code error
I'm having a problem with a custom built function and keep getting this error:


Warning: M

sapgui f4 help last search
I know this has to be simople. One user (maybe more) does not have the "last search saved" from the

RTF fomatting to email content
Im trying to sen an email with content is picked up from a rtf-file (file_get_contents('*.rtf'). Mai

Get relative path from absolute path
How would one go about getting the relative path to a file from its absolute path?

PHP/PKI
I am trying to set up a web application that uses pki. does anyone have a good tutorial to set this

with clause
hi all, i have a big query that usually access the same table more than once. for example, i have s

PHP and Javascript
Hello Everyone,

I have a page that needs a javascript code to be written between PHP code but

Multidimensional Array into an Html table, help!
Hello all, I am new to HTML/PHP so any help would be great.

I have a multidimensional array f

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