$(parent).append(state.html)
did the trick - thanks a ton polyrythmic!
> Should I just use DOM's createElement() and appendChild() directly?
> Or use innerHTML?
> And would it execute
ooglegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of koollx
Sent: Monday, October 15, 2007 9:29 AM
To: jQuery (English)
Subject: [jQuery] Re: Extremely poor performance of jQuery on AJAX partial
page updates
Thanks for your suggestion. I think it may help but it won't
completely solve the pro
Thanks for your suggestion. I think it may help but it won't
completely solve the problem. Let me give a little background on what
I'm actually trying to do. In response to an Ajax call the server
returns an array of component updates that need to be applied to the
page. Updates include DELETE, IN
Thanks for the suggestion. I can try it but I think it won't do the
same thing I was doing earlier. Let me give a little background on my
algorithm. The server sends a list of changes to the page and the
client script has to apply. Changes can be delete, insert and update.
The markup sent by the s
Thanks for your suggestion. I think it may help but it won't
completely solve the problem. Let me give a little background on what
I'm actually trying to do. In response to an Ajax call the server
returns an array of component updates that need to be applied to the
page. Updates include DELETE, IN
I was only suggesting PasteMonkey because you had a lot of HTML to
paste and a large amount of code is hard to read through Groups,
Groups fudges the formatting and doesn't do syntax highlighting.
Plus, it's a jQuery project :-).
The problem is in the HTML, kind of. When you create a DOM element
With no indication of what either the 'parent' HTML structure or the
JSON structure is like, is it possible to switch from ...
var $component = $(state.html);
$component.appendTo(parent);
...to...
$(parent).html(state.html);
(You wouldn't need to empty parent first - html() does that for
I can use PasteMonkey but I don't see how it can help in this case -
what exactly do you want me to paste in it? The line that takes over
20 seconds to execute is the regexp applied to the HTML that's passed
to jQuery constructor. There is no point in editing HTML (I think)
because it is automatic
9 matches
Mail list logo