For start instead of using new Request()
you need to use new Request.HTML() As this will return the HTML rather than just the text -----Original Message----- From: darpi [mailto:[email protected]] Sent: Thursday, 10 September 2009 1:41 AM To: MooTools Users Subject: [Moo] mootools 1.2 request responseText Dear All, maybe is a silly question, but I can't figure out how to have an element from a responseText from Request. I know that I can use request.html, but this can help me better understand some html/javascript/mootools activities. I receive for example from a request this code: <tr><th>mutuls</th><th>you are welcome</th></tr> <tr><th>mutuls2</th><th>you are welcome 2</th></tr> <tr><th>mutuls3</th><th>yoou are welcome again</th></tr> In the request.... onSuccess: function(responseText, responseXML) { I'd like to inject these rows inside an exiting table after an element. It would be: myresponseTextElement.inject(myTableRow,'after') The question is: how obtain myresponseTextElement from responseText? var myresponseTextElement=new Element('tr') myresponseTextElement.set('html',responseText); This way I loose all <th> tags. Any suggestions??? } Thanks, Dario
