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.
Did you know?Explore Trending and Topic pages for more stories like this.
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

Why does this file not return file names that start with numbers?
This file returns a list of filenames to help populate a drop down in my form. For some reason it ig

Printing issues with xMII 11.5
For some reason, we have one report (and only one) that is giving us fits when trying to print. The

progress bar...need expert opinion of experienced webmaster
Hey guys, quick question:

I want to display a progress bar when I upload files, but I am not

php and downloading
I want to use a php script to create two files. Then I want it to redirect (or whatever) to have tho

convert PHP array to Javascript array
I have a page that gets a request sent from AJAX, and I am trying to convert a PHP array to a javasc

Inserting Data into a MS Access DB using PHP.
As part of my uni course I am doing a placement at a company whom want me to create a client zone fo

HELP with mysql_real_escape_string
I'm looking to remove apostrophes completely when someone enters lyrics but don't have a clue how to

Taxonomy? Classification? Categorisation?
Not sure if there is a way around this classification problem
I have a supplier who produces

PHP url branch??
Functionally, using PHP, I'm doing a test of login input submitted by a user via an html form in a f

Transferring session variables into MySQL
I am trying to transfer $_SESSION variables into MySQL. However there is an error in my MySQL statem

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