javascript - jQuery effect on iframe parent document -
Just wondered if someone else has experienced it or I know why I got the error. Using Javascript from within so that parents dome element can be called, use the jQuery UI effect core by shaking it. Here is an example:
$ (document) .ready (function () {if ($ ("form"). Length> 0) {$ ("form"). (Function () {var oParentDoc = $ (parent.document) .find ("div # element"); var action = $ (this) .attr ("action"); var postdata = $ (this) .serialize () ; $ ("Loading"). ("Shake", {"bar": 3, "open" distance ": 10}, 60);}); return false;});}});
It works without effect, but when I use an effect, I get this error:
exception exception: [exception. . "Component Back Failure Code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMCSSStyleDeclaration.getPropertyValue]" nsr Esult: "0x80040111 (NS_ERROR_NOT_AVAILABLE)"
Thank you in advance for any insights :)
I'm not sure this will work, but you can try to establish a bind event in your parents, then try to trigger that incident in the iframe parents. / P>
Guardian JavaScript
$ (document) .ready (function () {$ ('# iframe'). Dam ('shakeFrame', function () {$ ('# iframe'). Effect ("shake", {"time": 3, "distance": 10}, 60);});});
IFrame javascript
$ (document) .ready (function () {$ (parent.document) .find ('# iframe'). ('Shakeframe');});
Comments
Post a Comment