This is my first posting here! :-) I hope you can help me...
To sum it up:
I have a question about the possibility to influence the execution of JavaScript in another frame. I cannot modify that other frame's code, but it does come from the same server. Therefore, there should not be an issue with any cross-side scripting restrictions.
In more detail:
I am working with a legacy web-app (strange as this may sound), which generates HTML with various more or less fixed programs. For a variety of reasons, we do not really want to mess with the source code of that application. Doing so would complicate things, make things terribly expensive, etc.
Yet, we would like to put the output of this old application into the new navigation framework that we are designing. And quite literally, we are using frames for that.
Unfortunately, the people who wrote the original code thought they'd be very clever by putting frame-break-out code into their output. For the most part, this simply looks like this:
Expand|Select|Wrap|Line Numbers
- if (window != window.top) {
- window.top.location = window.location;
- }
I don't want to disable JavaScript, and preferably, I also don't want to have to parse through all the content of the other frame, since this would be very messy.
But since my frame and frameset code will be served from the same server and domain as the legacy code, could I do something before or while that other frame loads, which would 'trick' this other frame into thinkig that it is indeed on top?
Any help would be greatly appreciated.
Thank you very much!
Tom