Roland
Advanced Member
    
Netherlands
9335 Posts |
Posted - 27 August 2003 : 11:00:27
|
I was thinking about the problem some people have when they try to use the forums inside a frameset, and then thought of something. It might not make any sense, and it's probably really stupid, but I thought I'd share it in just in case.
There's a JavaScript function that checks if the current page is inside a frameset or not. If it is, it can make the page jump out of the framset. I'm pretty sure you know what I'm talking about. It's not what I think should be used, but it's what got me this idea... Now what I was thinking was that one extra field could be added to the database where the "Frameset URL" could be entered.
- First, there's a check to see if the Frameset URL field is empty. If so, the top-location should be the same as the self-location, and therefore the forums should jump out of the frameset. The cookie should then also be set to the Forum URL.
- If the Frameset URL field isn't empty, and the top-location doesn't contain the same domain as the Framset URL, you could have the page load in the correct frameset or jump out of the current frameset. Then the cookie would be set depending on how you load the forums...
- If the Frameset URL and the top-location do have the same domains, then the cookie gets set to that URL. No out-of-frame jumping would be required.
- Lastly, if the Frameset URL field isn't empty, and the top-location is the same as the self-location, the cookie gets set to the self-location (the normal Forum URL). Or you could have the forums reload inside the frameset and set the cookie to that URL
This isn't a big deal to those who use the forums outside a frameset, but seeing how quite a lot of people use URL masking and such, something like this could perhaps be a useable solution... |
|