Have a page, with two frames, in the upper frame there is a terms of service, and an agree button, Call it agree.html. in the lower frame there is a warning "Please agree to tos", call that warning.html.
When the terms are agreeded to, the top goes to a control panel, i want the bottom frame to know when the top frame is no longer agree.html.
Like an if statement, if agree.html in upper frame, show warning.html, if not agree.html then show content.html
I would completely dump the frames and use PHP includes to build the page at the server end and have some scripting on the server to sort it all out. I wouldn't use Javascript at the browser end.
When it comes to implementing a solution - many developers never agree on a common theme. It is like the old days where in a clock showroom none of the clocks will be synchronized with each other.
It is like the Perl's motto: 'There's more than one way to do it.'
Use any method which will achieve what you need with the lowest number of man hours spent which at the same time gives you the maximum flexibility.
Another technique to consider is the use of AJAX here.
I decided JS was the best solution for the project. I realise i could do this in flash, php, asp and all the other languages, however, it wouldnt work how i wanted it.
Its either PHP and AJAX or HTML and HTML...
Frame use is a must, there is a very good reason, however i dont want to go into it...
I have more or less come up with the solution, its a little rough, might go for AJAX and PHP to perfect it...
The code is testing if the page is the top page in the heirarchy of pages in the browser window or if it falls inside of a frameset. If it is not inside a frameset, it will redirect the page to the frameset that would normally contain that page within it. Hope that makes some sense. There are of course more elaborate codings to use, but the code above is about as simple as it's gonna get.
You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
You have not yet logged in, or registered properly as a member
You are a member, but no longer have posting rights.
This is a private forum, for which you do not have permissions.
If you are a recent member, it's possible that you simply have not yet confirmed your account. Please
check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions
contained within.
If you are still experiencing problem, please read the
Login Assistance
Article for some advice on what may be causing your login not to work properly.