[ https://issues.apache.org/jira/browse/WICKET-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carlos Pita resolved WICKET-905. -------------------------------- Resolution: Fixed I solved this wrapping the behavior js call inside window.setTimeout(function() { }, 0); so that the context *really* is the top window, as matej wisely pointed out. Later I will post a howto into the wiki showing how to upload a file from a different iframe and call a behavior on the top frame to get rid of the iframe or something afterwards. > [nsIXMLHttpRequest.open] nsresult: 0x80004005 after calling behavior from > iframe > -------------------------------------------------------------------------------- > > Key: WICKET-905 > URL: https://issues.apache.org/jira/browse/WICKET-905 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 1.3.0-beta3, 1.3.0-beta4 > Reporter: Carlos Pita > Attachments: iframe.tgz > > > Below is a description copy pasted from the irc channel. Please take into > account that you must mount the attached example at a depth-2 path (as > <context>/<app>/iframe/wicket) or otherwise fix the url from > hideBehavior.getCallback().replace("../", "") (line 60 of WicketAjaxPage, I > don't know of a better way of doing this, adding the behavior to the iframe > doesn't work either). > >igor, do you remember that a couple of days ago i asked you about calling an > >ajax behavior from an iframe? > >i managed to do it using a vanilla XmlHttpRequest to reenter wicket through > >the behavior and then parsing the wicket response "by hand" > > but i tried a lot of combinations to avoid that hack to, the closer i got > > was patching the behavior url a bit, to get it relative to the main page, > > not the iframe, and spitting out a bit of javascript on the top window to > > be called by the iframe > > the behavior is executed and the ajax reponse is correctly handled, but > > then every other ajax request fail > > with this: uncaught exception: [Exception... "Component returned failure > > code: 0x80004005 (NS_ERROR_FAILURE) [nsIXMLHttpRequest.open]" nsresult: > > "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: javascript: > > eval(__firebugTemp__); :: anonymous :: line 1" data: no] > > I have a quickstart for this, do you think it's a bug in wicket? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.