[thelist] XML fragment into DOM

Matt Warden mwarden at gmail.com
Thu Jul 14 00:18:19 CDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jeff Howden wrote:
> Matt,
> 
> 
>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>>From: Matt Warden [mailto:mwarden at gmail.com] 
>>
>>
>>>Please tell me that you didn't try to write the script
>>>for doing the XMLHTTPRequest yourself.  I say this
>>>because there are several very good libraries out
>>>there that already abstract the browser differences
>>>for you.
>>
>>The browser differences aren't a problem. This function,
>>which is available on 13048901892308123 different sites,
>>takes care of it:
>>
>>[snip]
>>
>>Now, you are correct that libraries abstract this, but
>>who cares? What they *should* and *don't* abstract is
>>the details of dealing with the XMLHttpRequest object
>>itself. Or, at least, I have yet to come across
>>one that does.
>><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> 
> 
> I was specifically referring to the whole package, not just the XHR itself.

My point is that where abstraction is necessary is with XMLHTTP, not
browser differences, which are extremely minor in those that support
XMLHTTP and variants. In other words, I should be able to swap out a
JavaScript class from one that uses XMLHTTP to one that uses hidden
IFRAMEs (or, more useful, a future method), and not have to change
anything else.

Now, if you're talking about browser differences with hidden IFRAMEs
(egad!), well, then I'm with you.


- --
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFC1fWbAQ0d4HGyPE8RArVuAJ9Kdo5SiI2OOoA6noQclJWtgPl73wCfUjs5
3KVWPUNRE1I+ImrGr94Eals=
=IIMT
-----END PGP SIGNATURE-----


More information about the thelist mailing list