Yep, although you might want to make sure and wait for someone else here to confirm my answer as I am on the fence. Better yet, why don't you call the iPage guys because they can give you an answer better...
Horus, I think one or both of these might be useful..
The second one (dynamic frameset) is the one I was looking for and means you just set up the URL in the meta tag along the lines described in the code. I've used it for linking to pages in a frame from other other sites. For example, the link.
" class="msgurl" target="_blank">http://www.abetterworkplace.com/inde...twedo.html</a>.
Will take you to the "What We Do" page within the A Better Workplace iPage website frames. Whereas without the script the link would just be.
And would appear outside the frameset. It does mean you have more complex URLs for links in your iframe though..
Sorry, I didn't explain it very well, but hopefully you get the idea..
Hope this helps.
Okay, Horus, now I'm confused what exactly is it you want to do? Reading what you wrote, I've come up with the possible alternatives:.
1 page with an iframe - user clicks on link in iframe = opens new page with new surrounding frame and new iframe page in the middle of it - what I call the double whammy option ...OR...
2 page with an iframe - user clicks on link in the iframe = opens new non-framed page - what I call the cleansheet option ...OR....
3 page with an iframe - user clicks link on surrounding frame = new page with new surrounding frame and new iframe page in the middle of - a variation on the double whammy, with sauce ...OR....
4 page with an iframe - user clinks on link in surrounding frame = new non-framed page - the easy cleansheet method..
Options 2 and 4 should be straightforward target="_parent" or sumfing like dat..
Options 1 and 3 should be easy (Some have said Option1 is always easy) with the dynamic frameset code I posted above..
Am I still missing the point?.
None of the above..
I know I can link out of the iframe using.
The problem is that I want a.
In the iframe to refresh the whole page in that window...
Hmmm, could you please reread the whole thread and try telling us exactly what you want?.
Anyway, my guess of what you want is now along the following lines:.
1. You have an iframe within a framed page..
2. You want to set a meta refresh in the iframe..
3. You want the metarefresh to open a new page that takes up the whole window..
4. You want the new page to be no longer part of frameset..
5. You want the new page to be just an ordinary ol' html webpage..
My first question now is WHY? Why have the whole frameset in the first place if you're going to automatically redirect out of it?.
I'm sorry I don't quite understand, guess I'm just a bit thick, but getting it clear in my own head as to what you're after is the first step to finding a solution..
Sorry Neil, guess that I wasn't to clear in my first question..
You have got the process for what I want to happen though..
Your question "why?" (although I am not sure if this will help to find the "how?") is a good one:.
I have a series of different pages that are in an iframe with the same content surrounding it. One of the pages that is displayed within the iframe is a form which, when filled in with the correct information, will then open up a brand new section and I want all of the visible content to change after verifying the input. If the input is not verified, then the user is kept in the same section...
This will break out of the frameset and then after 0.1 seconds will refresh to a new page. A bit of a cobbled together job (and no I didn't code the JS, I just stole a couple of bits and joined them together) but it works. You can reduce or increase the time before it refreshes by changing the "100" down or up as you please..
Are we getting closer to what you want?.
I did up a quick test page at.
It's just ordinary frames rather than an iframe, but the principle should be the same..
The only problem I can see is that you can't seem to use the back button to get back to the original frame page. So you'll see I actually started sort of 2 pages back from the page that refreshes and found you can get back to the frameset. (EDIT: Not sure I did fix the back button problem.).
Anyway, have a look while I go have a minor nervous breakdown..
Who is on the verge of crawling under the desk and whimpering quietly while sucking on a towel...
It does work, and I thankyou for your help neil..
Just one small, niggling little thing (sorry)..
The page that does the redirecting expands to fill the whole window - which is not what I want..
I tried to alter you code slightly:.
But it stopped working.
Thanks for helping so far,..
Ummm, if you don't want it to expand to fill the whole window, what do you want it to do?.
Order of events:.
1. user clicks on button (in the iframe).
2. new page opens (in the iframe) to validate form input.
3. if input is validated, a message appears (in the iframe).
If not (bad input or wrong user) a different message appears..
4. a redirect command in the validation page (which is in the iframe) cause the whole of the page (ie, "top") to change..
I am sorry - sometimes in my attempt to be concise I miss stuff by accident (or maybe I'm just dumb - probably that)..
That's essentially how I had it set up. However, I've now split the page that redirects and becomes the top into two pages - first one can be your validation page and it will redirect to a new page that expands to be top. You will need to put all the validation could etc in the validation page and adjust it so it does NOT redirect if the form doesn't validate. Also the page that does expand to become the new _top can be coded to whatever you like, a new frameset with an iframe, a flash page, a new whatever pleases your fancy..