Can javascript "listeners" working across frames?
October 15, 2009 3:59 PM
Subscribe
Guerilla-coder Javascript filter: Rather than wait 12-18 months to get my project idea into my company's queue, I'm trying to find a workaround. It's going to be ugly. It's going to be messy. And I have no idea how to do it.
Bottom line: My company's web portal has a top frame that I can control, and a bottom frame controlled by Web IT. Can I add an event listener to the top frame that will watch the bottom frame and excecute when it's done loading?
So, I work for a major healthcare insurance company. The project queue is 12-18 months for major stuff and 9-12 months for piddly stuff. Naturally, we make exceptions for breakfixes (and for execs who have a pet project and scream alot, of course), but even simple stuff takes forever.
As an example, I put in a request a year ago to have a simple piece of javascript loaded into the web portal; it's just getting put in, this weekend.
Believe it or not, I really do like my job. It's almost become something of a game to see how much I can do with the few parts of the webpage I can control. Anyway ...
The top frame of the web portal is fully under my control, but never refreshes. As a result, I can't use addLoadEvent() or any of my usual tricks. Is there some sort of listener that can sit in the top frame and watch the bottom frame?
I can give lots more details if needed (no, this is not me going rogue; yes, I have approval to dick around in our test environments to see if this is going to work; yes I'm really trying to do something that will benefit our users). Please keep in mind my skill level is only intermediate, so I may have to do lots of research ... but I'm more than willing to do that. I just need a direction to go.
posted by jpolchlopek to computers & internet (13 comments total)
1 user marked this as a favorite
posted by Artw at 4:06 PM on October 15