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