[jQuery] jQuery.find() in XMLHttpRequest.responseText?

2008-07-18 Thread Toxane
Hi I'm trying to find paragraphs in the XMLHttpRequest.responseText but always get typeof object instead of a string. The responseText contains a full HTML Document: var myText = new jQuery('' + jQuery(XMLHttpRequest.responseText).find('p') + ''); jQuery('#myID').text(myText); Any help please

[jQuery] Re: What is the equivalent to Mootools $E(selector, data) in jQuery?

2008-06-24 Thread Toxane
appendTo('#el'); > > --John > > On Tue, Jun 24, 2008 at 6:44 AM, Toxane <[EMAIL PROTECTED]> wrote: > > > Hi. I'm porting a Mootools script to jQuery. Basically I need to > > extract some data from existing data. In Mootools, I did it like th

[jQuery] What is the equivalent to Mootools $E(selector, data) in jQuery?

2008-06-24 Thread Toxane
Hi. I'm porting a Mootools script to jQuery. Basically I need to extract some data from existing data. In Mootools, I did it like this: This creates a new element with some HTML : tmpData = new Element('div').setHTML(htmlData); This extracts all * from tmpData : $E('li', tmpData ).injectInside($