On Tue, 4 Nov 2008 08:38:14 -0600, "Andy Matthews"
<[EMAIL PROTECTED]> said:
> 
> Honestly it sounds like this isn't a good use of AJAX. Wasn't reallty
> intended for use with 1mb+ files.

While the majority of my files are smaller than that, yeah, I'm hitting
a problem here. I'm starting to wonder if I can do this with an
iframe...

> -----Original Message-----
> From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of [EMAIL PROTECTED]
> Sent: Monday, November 03, 2008 5:54 PM
> To: jquery-en@googlegroups.com
> Subject: [jQuery] Large text files via AJAX
> 
> 
> Greets all.
> 
> I have an application which passes large amounts of plain text to update
> a
> <pre id="textdata"></pre> block on the client. This is all plain text and
> can range in size from a few bytes to 64MB. Typically though the text
> files
> are less than 1MB. 
> 
> Updating the pre block can be slow. I'm sending the request via POST and
> getting the data back in a json object along with some metadata about the
> text file. I'm starting to look at this and I'm thinking that I would see
> better performance by breaking out the request into two parts:
> 
> 0) Make sure the data is gziped
> 1) Request the text file via POST and get json response of metadata only
> 2) Update the web page from the json response
> 3) Second request to update the <pre> block directly from text data GET
> request
> 
> Thoughts?  What is the fastest way to update a text block with large
> amount
> of plain text? Paging isn't an option here :)
> 
> Thanks.
> 
> --
> Scott
> 
> 

Reply via email to