[support] modalframe api: affecting parent window
Christopher M. Jones
cjones at partialflow.com
Fri Oct 22 13:45:17 UTC 2010
Hi, all. I'm spinning my wheels a bit on this one. I have a form in a
modal, using modalframe api (http://drupal.org/project/modalframe). I
want to use events in the modal to trigger changes in the DOM in the
parent window, e.g., adding selections from the modal into the dom
behind it.
I don't want to do this in the onSubmit handler, because the updates
could take a second or so. So its better that the changes be done
incrementally.
Thing is, I don't know how to affect the parent from the child. Modal
frame itself does things like this:
self.$parentWindow = parent.jQuery(parent);
But I'm not sure what to do with that.
What I need to get to is something like
parent.find("select element in parent dom").trigger(...)
More information about the support
mailing list