I have a demo, it just shows the count of characters.
But kills opera with the over 4meg ajax load, works fine in FF 2 & Safari.
<a href="http://jpassoc.com/Library.html">
http://jpassoc.com/Library.html</a><pre id="line1"><font size="4"><span style="font-family: courier new,monospace; font-weight: bold;">$(function(){</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace; font-weight: bold;">
$.ajax(</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace; font-weight: bold;"> {type: "GET"</span><br style="font-family: courier new,monospace; font-weight: bold;">
<span style="font-family: courier new,monospace; font-weight: bold;"> ,url: '/cat.cgi?Library.xml'</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace; font-weight: bold;">
,complete:function(r){</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace; font-weight: bold;"> var t = r.responseText</span><br style="font-family: courier new,monospace; font-weight: bold;">
<span style="font-family: courier new,monospace; font-weight: bold;"> $('#status').text('loaded')</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace; font-weight: bold;">
var v = t.substr(0,500) + '…'</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace; font-weight: bold;"> $('#msg').text(v)</span><br style="font-family: courier new,monospace; font-weight: bold;">
<span style="font-family: courier new,monospace; font-weight: bold;"> }</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace; font-weight: bold;"> ,<span style="color: rgb(255, 0, 0);">
partial</span>:function(r){</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace; font-weight: bold;"> var t = r.responseText</span><br style="font-family: courier new,monospace; font-weight: bold;">
<span style="font-family: courier new,monospace; font-weight: bold;"> $('#status').html(t.length)</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace; font-weight: bold;">
}</span><br style="font-family: courier new,monospace; font-weight: bold;"><span style="font-family: courier new,monospace; font-weight: bold;"> })</span></font>
<font size="4"><span style="font-weight: bold; font-family: courier new,monospace;">
});</span></font></pre>
<div><span class="gmail_quote">On 5/9/07, <b class="gmail_sendername">Ⓙⓐⓚⓔ</b> <<a href="mailto:jakecigar@gmail.com">
jakecigar@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
since the dev list & tickets system is down... I'll post here.
What do you think of adding this code to ajax.js? it will allow better loading information for long dynamic(php,perl...) ajax requests
diff -u ajax-orig.js ajax.js
--- ajax-orig.js 2007-04-12 12:27:36.000000000 -0700
+++ ajax.js 2007-05-07 09:18:19.000000000 -0700
@@ -708,6 +708,10 @@
if(s.async
)
xml = null;
}
+ else if (xml && xml.readyState == 3){
+ if (s.partial)
+
s.partial( xml, 'partial' );
+ }
};
// don't attach the handler to the request, just poll it instead
<span class="sg">
<br clear="all">
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ
</span></blockquote></div>
<br clear="all">
--
Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ