change url or query string wihout reloading using jquery plugin

Posted by Pradyut Bhattacharya on Stack Overflow See other posts from Stack Overflow or by Pradyut Bhattacharya
Published on 2010-05-06T11:29:37Z Indexed on 2010/05/06 11:58 UTC
Read the original article Hit count: 359

Filed under:
|
|

Hi I want to change the url or query string without reloading the page...

I have used the QUERY STRING OBJECT plugin for jquery

I have this example page in which on click of a album it should change the query string...

Now i can change the url using the code

window.location.href =  $.query.set('aid', a_id);

but it goes for reloading the page...

and this code does not have any effect

 var newUrl =  $.query.set('aid', a_id);

How can do without reloading the page...

how can i do without reloading the page...

Thanks
Pradyut
India

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about jquery-plugins