I have a system in place which uses a frameset, within the frameset frames there are some calls like;
top.frame1.location = "newlocation";
and
top.frame2.afunction();
However I am updating the system, and now the frameset resides inside an iframe, so obviously all of the top.frame.whatever calls no longer work. Now I'm trying to find a solution which doesn't involve changing the "top." in the ton of pages that run various functions.
I've tried in the top most page doing something like this;
frame1 = $('#containerframe').contents().find('#frame1');
But that doesn't seem to work, it just says top.frame1.document is undefined when trying to access the document.
Any suggestions would be cool :)