pines notify container
I am using Pines Notify plugin for jquery and would like to us it while using jquery dialog that has an iframe.Currently this works except that in put the growl m开发者_如何学Goessage inside the iframe rather than on the parent. Does anyone out there know how to apply it to the parent about it.
Make sure to include the plugin in the parent page (I assume jQuery already is if you have a dialog), then just reference it using window.parent
, like this:
window.parent.$.pnotify({
pnotify_title: 'Title',
pnotify_text: 'Content'
});
This calls the plugin in the parent page/frame rather than in the <iframe>
. Also, this only works if the parent and <iframe>
are on the same domain due to the same-origin policy, hopefully this is a non-issue for you.
精彩评论