You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Carlos Pita (JIRA)" <ji...@apache.org> on 2007/08/30 01:36:30 UTC

[jira] Updated: (WICKET-905) [nsIXMLHttpRequest.open] nsresult: 0x80004005 after calling behavior from iframe

     [ https://issues.apache.org/jira/browse/WICKET-905?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carlos Pita updated WICKET-905:
-------------------------------

    Attachment: iframe.tgz

> [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.