[jquery-dev] Re: Possible Memory Leak in remove() and empty()

2008-10-24 Thread John Resig
Chris - This was a great write-up, thank you! I just thought the Dev team might be interested in my findings. I > plan on striping this down and writing conclusive tests and > documentation over the weekend. > Looking forward to it! --John --~--~-~--~~~---~--~~

[jquery-dev] Possible Memory Leak in remove() and empty()

2008-10-24 Thread chris robinson
Hey all, I believe I have found a leak and have the beginnings of a solution to it. I'm writing an app that preforms ajax searching that returns pretty large result sets. I render them via jQuery into a tbody. once a subsequent search is performed I call tbody.empty() and append the new result

[jquery-dev] Re: what is difference between $(document).height() and $(window).height() ?

2008-10-24 Thread Alex Weber
All IE versions to date if i'm not mistaken (and I fear even v8) have their own "box-model" implementation. Basically it means that IE for whatever reason (i guess backwards compatibility, stubbornness or just plain ignorance uses its own rules to calculate dimensions for (correct me if I'm wrong

[jquery-dev] event delegation

2008-10-24 Thread treshug...@gmail.com
I was wondering if event delegation was going to make it into the core anytime soon? Rebinding events can get tedious and make for more code than should be necessary. This would really put jQuery ahead of most of the other libraries also. If nothing is planned, I might see if I can gracefully int

[jquery-dev] replaceWith not working with clones in IE7

2008-10-24 Thread beardy
Hi I'm fairly new to jQuery, so I'm trying some things out. I'm currently writing something to copy a form (including all its values, but not its event handlers) and place it into an existing iframe. The code I'm using to do this is: $("#theframe").contents().find("form").replaceWith($ ("#upload

[jquery-dev] Re: $(req.responseText).html() can return empty string

2008-10-24 Thread John Resig
If I had to guess as to what the problem was, I'd say it's the two extra HTML comments dangling off the end of the document (!?). Thus jQuery is probably trying to find elements within the comments, which doesn't work. Unfortunately I don't think it's possible to put this through an XML parser, eit

[jquery-dev] Re: $(req.responseText).html() can return empty string

2008-10-24 Thread Sam Collett
Only just managed to get around to creating a test case: http://www.texotela.co.uk/ajaxerror.php HTML is sent as text/html, but no DOCTYPE . John Resig wrote: > Could you save the output as an HTML file? And then make another file > that tries to load it? That might be able to point us in the ri