Displaying 1 result from an estimated 1 matches for "parentpagecallback".
2008 Jan 31
0
Element.Fire on window.parent.document from iframe (fails in Opera)
...an
image loaded, and does this to pass upload information to the parent
(this only fires when an image was uploaded):
$(window.parent.document).fire(''image:uploaded'',
objectWithInformation);
On the parent page, I do this:
$(document).observe(''image:uploaded'', parentPageCallback);
The idea is for different parent pages to be able to include the same
image upload module and do different things when an image is uploaded.
It works great for FF (2) and IE (7), but in Opera (9) I''ve had
trouble with pushing custom events to the parent document. Does
anyone know if t...