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

How to disable direct access to a file
Suppose I've 2 Files. 1.php & 2.php

I don't want anybody to access 2.php directly fr

cURL Upload Help
OK, I am creating a bridge from a local program to my website and I am trying to find the best way t

Two warning messages
Quote<b>Warning</b>: mysql_real_escape_string() expects parameter 1 to

How to add advertisment on top of videos
Hello,
I was told that i should find the answer for this problem in this forums.
I searched a

IDOC error
Hi, When i send IDOC from ECC system to MII there is no problem ECC side, i says message sent succe

Online Event Ticket Sales
Has anyone wrote a script for online tickets sales?

I have been googling and found lots of th

Page not Loading After Test
Hey All

It seemed that an inlcude statement wasn't working for some reason, so I tried a more

Open/Close Links in Php
Hello, Hoping someone can inform me how I can get PHP to automatically open a set of links in a new

highlighting search terms
well, I started this in the regular PHP section, but it no longer fits there. Suffice it to say, I'm

Session login issue
I'm wondering how to fix a problem I'm having with a session-based login system

Say I go to h

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