You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Guillaume Smet <gu...@gmail.com> on 2013/06/07 16:34:18 UTC

"Connecting..." in Firefox's tab title

Hi,

For quite a while now, we are seeing a weird behavior with Firefox: as
soon as Wicket does an Ajax call, the tab title is changed to
"Connecting..." and it doesn't get back to the original page title at
all, even after the Ajax call returned.

Does anybody else see this behavior?

We don't see it with any other site doing Ajax calls, just with Wicket app.

It looks like a detail but it's quite annoying to have a bunch of tabs
named "Connecting...".

Thanks for your feedback.

-- 
Guillaume

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: "Connecting..." in Firefox's tab title

Posted by Guillaume Smet <gu...@gmail.com>.
Hi Sven,

On Fri, Jun 7, 2013 at 10:36 PM, Sven Meier <sv...@meiers.net> wrote:
> Yes please. And don't forget to add the collected information to it.

Done: https://issues.apache.org/jira/browse/WICKET-5222

Quickstart and patch attached: it fixes the problem for us.

Thanks.

-- 
Guillaume

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: "Connecting..." in Firefox's tab title

Posted by Sven Meier <sv...@meiers.net>.
>Should I open a JIRA and should I attach a quickstart to it?

Yes please. And don't forget to add the collected information to it.

Thanks
Sven


On 06/07/2013 05:06 PM, Guillaume Smet wrote:
> Hi,
>
> After some digging, it's related to the multipart ajax request via
> posting an iframe.
>
> The iframe is removed in the onload of the iframe ( see
> https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L868
> ) and it seems to be problematic for Firefox.
>
> Looks like there is some literature about it here:
> http://stackoverflow.com/questions/7285866/never-ending-connecting-message-after-ajax-form-submit
>
> and using a pattern like the following should fix it:
> iframe.onload = function(){
>      // Do work with the content of the iframe…
>
>      setTimeout(function(){
>          iframe.parentNode.removeChild(iframe);
>      }, 0);
> }
>
> Note: we are using Wicket 6.8.0 and Firefox 21.
>
> Should I open a JIRA and should I attach a quickstart to it? I'm AFK
> till monday but should be able to do it on monday if needed.
>
> Thanks.
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: "Connecting..." in Firefox's tab title

Posted by Guillaume Smet <gu...@gmail.com>.
Hi,

After some digging, it's related to the multipart ajax request via
posting an iframe.

The iframe is removed in the onload of the iframe ( see
https://github.com/apache/wicket/blob/master/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js#L868
) and it seems to be problematic for Firefox.

Looks like there is some literature about it here:
http://stackoverflow.com/questions/7285866/never-ending-connecting-message-after-ajax-form-submit

and using a pattern like the following should fix it:
iframe.onload = function(){
    // Do work with the content of the iframe…

    setTimeout(function(){
        iframe.parentNode.removeChild(iframe);
    }, 0);
}

Note: we are using Wicket 6.8.0 and Firefox 21.

Should I open a JIRA and should I attach a quickstart to it? I'm AFK
till monday but should be able to do it on monday if needed.

Thanks.

-- 
Guillaume

On Fri, Jun 7, 2013 at 4:34 PM, Guillaume Smet <gu...@gmail.com> wrote:
> Hi,
>
> For quite a while now, we are seeing a weird behavior with Firefox: as
> soon as Wicket does an Ajax call, the tab title is changed to
> "Connecting..." and it doesn't get back to the original page title at
> all, even after the Ajax call returned.
>
> Does anybody else see this behavior?
>
> We don't see it with any other site doing Ajax calls, just with Wicket app.
>
> It looks like a detail but it's quite annoying to have a bunch of tabs
> named "Connecting...".
>
> Thanks for your feedback.
>
> --
> Guillaume

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org