bladefinor
12-15-2008, 03:12 PM
Here's my problem:
I got a top page with two iframes in it. The 1st iframe is iframe1.html and the 2nd iframe2.html. The top page is index.html.
I click on a button in iframe2.html that goes to an ID named "blabla" in the 1st iframe (iframe1.html), so the link is "#blabla".
After that I want to go to an another ID in iframe1.html (through iframe2.html). That link is "#bleble", but the the 1st iframe's location is "iframe1.html#blabla", so it won't take me t "bleble", becayse then the link would be "iframe1.html#blabla#bleble".
I'm using this javascript codes as links right now (which doesn't work the second time i want to go to an ID):
parent.iframe1.location = parent.iframe1.location + '#blabla';
and
parent.iframe1.location = parent.iframe1.location + '#bleble';
So the thing is that I want to know if there's any code that takes off/deletes the old ID from the 1st iframe's url/location...
Any thoughts?
I got a top page with two iframes in it. The 1st iframe is iframe1.html and the 2nd iframe2.html. The top page is index.html.
I click on a button in iframe2.html that goes to an ID named "blabla" in the 1st iframe (iframe1.html), so the link is "#blabla".
After that I want to go to an another ID in iframe1.html (through iframe2.html). That link is "#bleble", but the the 1st iframe's location is "iframe1.html#blabla", so it won't take me t "bleble", becayse then the link would be "iframe1.html#blabla#bleble".
I'm using this javascript codes as links right now (which doesn't work the second time i want to go to an ID):
parent.iframe1.location = parent.iframe1.location + '#blabla';
and
parent.iframe1.location = parent.iframe1.location + '#bleble';
So the thing is that I want to know if there's any code that takes off/deletes the old ID from the 1st iframe's url/location...
Any thoughts?