Re: [jQuery] Using $ to insert HTML into the page

2006-10-06 Thread Blair Mitchelmore
I'm pretty sure If I recall correctly, jQuery's element creation technique is to create a temporary div (var div = document.createElement('div')) then add the html you provided to that elements innerHTML value (div.innerHTML = html) and then extracting the div's children (using the appropriate

[jQuery] Using $ to insert HTML into the page

2006-10-06 Thread Matthew Pennell
Jörn Zaefferer schrieb:>> In the documentation (visualjquery.com >> version), it says that the $ function, when passed some HTML as a >> string, will "create the DOM elements representing that HTML string, >> on the fly". Looking at the code though (the clean function

Re: [jQuery] Using $ to insert HTML into the page

2006-10-05 Thread Scott Sharkey
Jörn Zaefferer wrote: > Matthew Pennell schrieb: >> Apologies if this has been raised before - I searched but couldn't >> find anything. >> >> In the documentation (visualjquery.com >> version), it says that the $ function, when passed some HTML as a >> string, will "cr

Re: [jQuery] Using $ to insert HTML into the page

2006-10-05 Thread Jörn Zaefferer
Matthew Pennell schrieb: > Apologies if this has been raised before - I searched but couldn't > find anything. > > In the documentation (visualjquery.com > version), it says that the $ function, when passed some HTML as a > string, will "create the DOM elements represen

[jQuery] Using $ to insert HTML into the page

2006-10-05 Thread Matthew Pennell
Apologies if this has been raised before - I searched but couldn't find anything.In the documentation (visualjquery.com version), it says that the $ function, when passed some HTML as a string, will "create the DOM elements representing that HTML string, on the fly". Looking at the code though (the