I'm not sure how many responses you'll get after sending nearly 1MB of text
to each of our inboxes... But it certainly helped clarify/emphasize the
issue. :)

So, is the server sending your page JSON-encoded data that is then iterated
through (using JavaScript) to generate a giant string of HTML? If so, have
you tried using...

     $('<tr>...</tr>').appendTo('#yourTable')

...to add a row at a time? You could break that down further (td at a time).
It would probably take longer to iterate through your data this way, but
users could watch the table grow.

Is the sample HTML truly a sample of your data? You have 16942 images in
your table... all of which seem to be either yes, no or sold. You could save
a lot of HTML by using CSS to declare those as background images and use a
class to reference them. To reduce your code to something like...

<td>100B</td>
<td class="y"></td>
<td class="n"></td>
<td class="s"></td>

...but you could be more verbose in naming the classes too. No sense in
being so spartan.

Anyhow, that's all I have time for now... I hope this helps get you going
down a more manageable path.

Cheers,
Brian.



On Thu, Mar 27, 2008 at 1:23 PM, wesbird <[EMAIL PROTECTED]> wrote:

> Hi
>  I just start use jQuery about 2 month ago, so please bear with me if
> I ask some question which already answered.
>  I'm working a ajax project, I use JSON to get result from server and
> then generate a table on the fly. the problem I have is, my end table
> string is huge, length is 935895.
> ...

Reply via email to