tags:

views:

177

answers:

1

Hi,

I am trying to add two parameters to the url (in the address bar).

Basically a user click this link from a different location <a href="player.php">open player</a>

I need to automatically load the the latest show from that list of shows displayed, the show is shown every day so i do not know the episode number.

the address bar needs to be like this when I load the page http://localhost/player.php?v=11145&amp;a=true

I have this

var autoplay = "$('.link:first').attr('href');
var loadUrl = "http://localhost/player.php";
or 
var loadUrl = window.location.href;

but not sure how to load and attach the params. Any suggestions of any good techns to do this would be good

+2  A: 

duplicate - u can see a lot of answers in the link:

http://stackoverflow.com/questions/1090948/change-url-parameters-with-jquery

Haim Evgi
ahh I see thanks very much
NiseNise