[Javascript] document.createElement("TBODY")

Paul Novitski paul at juniperwebcraft.com
Tue Apr 17 11:15:03 CDT 2007


At 4/17/2007 08:36 AM, Hassan Schroeder wrote:
>Michael Borchers wrote:
>
> > Is there any other way to parse the response than innerHTML?
>
>Using innerHTML is not "parsing" the response. At all. It's sticking
>a lump of cr--, er, whatever, into your page, rather than explicitly
>(and IMHO properly) inserting elements into the DOM.
>
>For simplicity's sake, let's say this row is returned by an AJAX
>request:
>
>    <tr><td>now</td><td>is</td><td>the</td><td>time</td></tr>


Michael, you seem to be assuming that the XMLHttpRequest request will 
return only HTML markup.  If you're in control of the situation, and 
you find parsing HTML problematic, consider passing down data in a 
form simpler to parse such as delimited arrays of some kind.

Regards,

Paul
__________________________

Paul Novitski
Juniper Webcraft Ltd.
http://juniperwebcraft.com 




More information about the Javascript mailing list