Reputation: 9541
On one page, I get the username and I am passing that (via Cookies) to the second page.
The second page has a frameset
One frame is links to topframe.htm
The second frame should point to a website like
http://localhost/id=username
The username is different for each person is different. So how can I make the second frame load a dynamically generated URL?
Upvotes: 1
Views: 75
Reputation: 23094
You can setup a link to open within the same iframe
<a target="_self" href="#" id="link" />
And after getting inputs, do this..
function setUserLink (usernameFromCookie){
.
.
$('a#link').attr('href', 'http://localhost/id=' + usernameFromCookie);
.
.
}
Upvotes: 1