[Javascript] document.createElement("TBODY")
Billy Reisinger
billy.reisinger at gmail.com
Tue Apr 17 20:50:50 CDT 2007
I've encountered situations in which I am not in control of the
server that is returning the content, and that server is returning a
content type header that is unfriendly with using responseXML. In
those cases, I have felt justified in using a responseText /
innerHTML solution, with the caveat that I have to wait about 20
milliseconds for the browser to parse the innerHTML insertion before
doing any DOM manipulation on it. Fun fun.
On Apr 17, 2007, at 11:45 AM, Hassan Schroeder wrote:
> Scott Reynen wrote:
>
>> I don't understand this argument.
>
> My intention was only to demonstrate how to get the values out of
> an XML response. In a real application, there would (or should) be
> some error checking, to make sure that the expected:
>
> <tr><td>now</td><td>is</td><td>the</td><td>time</td></tr>
>
> :: wasn't something like "<tr><td>now</tAN ERROR HAS OCCURRED", or
> a 200-line stack trace :-)
>
> Or so I'd hope. Getting values from an XML response and building the
> insertion object just seems more robust to me.
>
> YMMV,
> --
> Hassan Schroeder ----------------------------- hassan at webtuitive.com
> Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com
> opinion: webtuitive.blogspot.com
>
> dream. code.
>
>
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
More information about the Javascript
mailing list