Unfortunately I don't have a place to put up a test page.
Here is the html template:

 <div style="display:none;">
            <table>
               <tr id="TemplateRowLineItem">
                    <td></td>
                    <td></td>
                    <td id="DocumentNumber"></td>
                    <td id="Description"></td>
                    <td id="SubTotal"></td>
                    <td id="TaxTotal"></td>
                    <td id="Total"></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr id="TemplateRowError">
                    <td></td>
                    <td colspan="8" id="ErrorMsg"></td>
                </tr>
                <tr id="TemplateRowMore">
                    <td colspan="4" style="height:10px;line-height:
10px;font-size:10px;" id="Td1">Show 100 More Results.</td>
                    <td colspan="5" style="height:10px;line-height:
10px;font-size:10px;" id="Td2">Show All Results.</td>
                </tr>
                <tr id="TemplateRowLoading">
                    <td colspan="9" style="text-align:center;"><img
alt="loading" src="orange_loading.gif" /> Loading...</td>
                </tr>
            </table>
        </div>

Thanks for all your help.



On Oct 7, 9:49 am, "Michael Geary" <[EMAIL PROTECTED]> wrote:
> Ah, my mistake. I saw all the template.find() calls and didn't pay close
> enough attention.
>
> OK, now it's clear that the problem is all the DOM manipulation inside the
> loop. (The performance of $.each() itself is the least of  your worries.)
> You can easily speed this up by a factor of 10 or more by building up an
> HTML string instead of DOM manipulation.
>
> Can you share the content of your #TemplateRowLineItem and #TemplateRowMore
> elements? If I can see those I can suggest something more specific.
>
> Actually, it would help a LOT if you could put up a complete test page, that
> way I don't have to play 20 questions... ;-)
>
> -Mike
>
>
>
> > From: Coryt
> > Actually the data is being returned as json.
> > sample data:...
> > > From: Michael Geary
> > > Is there any possibility that you can get JSON data instead
> > > of XML? It will be *much* faster.- Hide quoted text -
>
> - Show quoted text -

Reply via email to