Re: xmlhttprequest to get dynamically generated data seems to have a size limit
- From: "VK" <schools_ring@xxxxxxxxx>
- Date: 16 Jan 2006 08:36:55 -0800
ted benedict wrote:
> ok i decided to post more detailed information.
>
> 1. dynamically generated TEXT from a server side php script.
> ---------------------------------------------------------------------------------------
> the server side script looks like this:
> <?php
> echo('text ');
> ?>
>
> if i use xmlhttprequest to GET this file, asynchronously, and then use
> (AFTER the request object's state is 4) .responseText, i can read out
> 'text'. now, depending on the size of this file, i'll get the complete
> generated text or not.
>
> case 1: echo('text '); repeated for about 80kB of space.
> in firefox, no problems occured. in internet explorer, the
> .responseText returned the full generated text.
>
> case 2: echo('text '); repeated for about 120kB of space.
> in firefox, no problems occured. in internet explorer, the
> .responseText only returns a truncated version, not everything.
>
> 2. dynamically generated XML from a server side php script.
> ---------------------------------------------------------------------------------------
> the server side script looks like this:
> <?php
> header("Content-type: text/xml; charset=iso-8859-1");
> echo('<entries>');
> echo('<entry>');
> // more elements
> echo('</entry>');
> echo('</entries>');
> ?>
>
> case 1: copy pasted the entry generating echo statements, repeated for
> about 55kB of space.
> using .responseText, in firefox, no problems occured. in internet
> explorer, the full generated xml is returned
> using .responseXML and counting the entry elements for example, in
> firefox, no problems, in ie no problems
>
> case 2: copy pasted the entry generating echo statements, repeated for
> about 220kB of space.
> using .responseText, in firefox and in internet explorer, only partial
> data is displayed if i print it to a <div> for example
> using .responseXML and counting the entry elements for example, in
> firefox and in ie, the responseXML cannot be accessed as it received
> truncated data and did not build up correctly.
>
>
> now this was a little a simplification because i did more experiments
> to get the file sizes and cases more exactly (ie fails to receive and
> build the responseXML object sooner than firefox, for example)
>
>
> i hope this explained my problem? i hope it was interesting for you to
> see what weird things happen :)
As I pointed in my first post:
<http://support.microsoft.com/default.aspx?scid=KB;en-us;q208427>
Please take your time to read it though. It is nasty (the fix), but it
is forced after numerous Address Buffer Overflow attacks. Firefox is so
generous just because it is still in the position of "Uncachable Joe"
("-Why is this Joe so uncachable? - Because why the hell anyone would
want to cache him?!")
Change you submission method to POST (using say www.ajaxtoolbox.com)
and be happy ever after. ;-)
.
- Follow-Ups:
- Re: xmlhttprequest to get dynamically generated data seems to have a size limit
- From: Thomas 'PointedEars' Lahn
- Re: xmlhttprequest to get dynamically generated data seems to have a size limit
- References:
- xmlhttprequest to get dynamically generated data seems to have a size limit
- From: ted benedict
- Re: xmlhttprequest to get dynamically generated data seems to have a size limit
- From: Thomas 'PointedEars' Lahn
- Re: xmlhttprequest to get dynamically generated data seems to have a size limit
- From: ted benedict
- Re: xmlhttprequest to get dynamically generated data seems to have a size limit
- From: ted benedict
- xmlhttprequest to get dynamically generated data seems to have a size limit
- Prev by Date: Re: include a file in another html page
- Next by Date: Re: External .js file execution
- Previous by thread: Re: xmlhttprequest to get dynamically generated data seems to have a size limit
- Next by thread: Re: xmlhttprequest to get dynamically generated data seems to have a size limit
- Index(es):
Relevant Pages
|
|