Watch for a sibling frame to be reloaded?
I have to insert some HTML into a frame in a frameset page from another frame in the frameset.
- frameA - I need to know when this frame is loaded
- frameB - jQuery here to detect when frameA loads
Due to maintenance issues there is no way to simply run code from the pages loaded in frameA. So far I have
- $(function() {
- $(frameA).load(function(){ alert("Hello!"); });
- });
But this only alerts the first time the parent page is loaded. Working with these constraints, what is the correct way to do something each and every time frameA is loaded?