Monday, September 17, 2007
Prototype, Firefox, and Iframes
If, for some reason, you are using iframes, and you try to call a parent frame's AJAX function from within that iframe, and care about Firefox compatibility, use window.setTimeout(realFunctionHere, 0) in that parent window's function. Because Firefox doesn't like iframes calling AJAX in a parent frame/window at all.
Info gotten from here, I ran into this because FF stopped working for one of my AJAX handlers where I was coming from an iframe. I thought the iframe might be the culprit, and that it was an anti-XSS issue, but nothing was saying "security violation". Specifically, I was getting '0x80004005 NS_ERROR_FAILURE prototype.js :: anonymous :: line 1035' (in case anyone's Googl(e)ing this entry).
Also, being as to Google is now a verb, how does the active tense work? Does it have an 'e' or not? Hmm... things to ponder.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment