Ajax update duplicates DOM in memory

UI Components for JSF
Post Reply
michaelb
Posts: 23
Joined: 23 Jul 2010, 14:25

22 Oct 2010, 13:08

Hi,

When updating any element on the page by an ajax call, the DOM just gets bigger and bigger (factor 2!)
Because i use a jQuery selecter, the returned result will crash my browser.

Just use this javascript to see (i have some textareas on my page):

Code: Select all

jQuery(document).ajaxComplete( function(){
    alert(document.getElementsByTagName('textarea').length);
});
will output:

ajax req 1 : x
ajax req 2 : x*2
ajax req 3 : x*2*2
...........

Using 2.2M1 and 2.2.RC1-SNAPSHOT

michaelb
Posts: 23
Joined: 23 Jul 2010, 14:25

22 Oct 2010, 14:49

Used a textarea auto grow jquery script that caused it. :shock:

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

22 Oct 2010, 15:05

False alarm. :)

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 55 guests