[Catalyst] Delays in Explorer connections via Catalyst

will trillich will.trillich at serensoft.com
Sun Mar 18 17:39:07 GMT 2012


Hmm. I wouldn't expect much of a problem with jQuery, as it's been a pretty
robust cross-browser library for us in the past. But just in case...

<div id=3D"incident_tabs" style=3D"margin-top:1em;">
    <ul>
        <li><a href=3D"/incident/[%
incident.id%]/tab/info"><span>Incident</span></a></li>
        <li><a href=3D"/incident/[%
incident.id%]/tab/att"><span>Attachments</span> ([% att_ct %] for [%
c.byte_size(
att_sz ) %])</a></li>
        <li><a href=3D"/incident/[%
incident.id%]/tab/hist"><span>History</span> ([% hist_ct %])</a></li>
    </ul>
</div>

<script type=3D"text/javascript">
jQuery(document).ready(function(){
    var t =3D jQuery('#incident_tabs').tabs({
        spinner: 'Loading...',
        cache: false,
        ajaxOptions: { cache: false }
    });
    var ix =3D 0;
    t.tabs('url',ix++,'/incident/[% incident.id %]/tab/info');
    t.tabs('url',ix++,'/incident/[% incident.id %]/tab/att');
    t.tabs('url',ix++,'/incident/[% incident.id %]/tab/hist');
    t.tabs('option','disabled',[]);
    var s =3D jQuery('#incident_tabs').tabs('option','selected');
    t.tabs('load', s );

    $('#incident_reload').live('click',function(){
        t.tabs('load', t.tabs('option','selected') );
        return false;
    });

});
</script>


On Sun, Mar 18, 2012 at 12:11 PM, Andr=E9 Walker <andre at andrewalker.net>wro=
te:

>  It might be more a Javascript problem than a Catalyst one. Can we see the
> relevant jQuery code?
>
>
> On 03/18/2012 01:37 PM, will trillich wrote:
>
> Catalistas -- got an odd Explorer puzzle for you...
>
>
>  Short version:
>
>  We're noticing that Explorer often seems to "hang" for a minute or so on
> ajax/XHR requests. I suspect it's an open connection where Explorer is
> waiting for something -- either more data, or maybe a 'close' event? Is
> there a way to force the output to flush or to close?
>
>
>  Longer version:
>
>  Using jQuery in our Catalyst app to fill out tabbed areas on-demand, in
> Firefox the response time is nearly immediate. In Explorer, it's sometimes
> very speedy, but other times it "spins its wheels" for 60 seconds before
> rendering the ajax'd content.
>
>  When we run the server via "*script/*server.pl -d*" we sometimes don't
> even see the request arrive until the end of those 60 seconds (for
> Explorer). That is, we initiate the event in the browser at *12:01:01*and=
 the Catalyst debug output (eventually) displays
> *[info] *** Request 6 (0.067/s) [2188] [Sun Mar 18 12:02:03 2012]* and
> that's when the browser renders the results (some 60+ seconds later!).
>
>  Is this a flush/open-connection issue? If not, what Explorer-savvy
> diagnostic tools are available to narrow this down?
>
>
>  --
> "We act as though comfort and luxury were the chief requirements of life,
> when all that we need to make us happy is something to be enthusiastic
> about." -- Albert Einstein
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.u=
k/
> Dev site: http://dev.catalyst.perl.org/
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
>


-- =

"We act as though comfort and luxury were the chief requirements of life,
when all that we need to make us happy is something to be enthusiastic
about." -- Albert Einstein
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20120318/316d0=
ea8/attachment.htm


More information about the Catalyst mailing list