Jim,

>> The reason the wddx.js stuff is so slow is because it's parsing the XML
>as
>> a
>> string. The larger the string the slow it is. It was written this way for
>> maximum browser compatibility.
>
>Actually... no.  ;^)
>
>It was written that way because at the time there was no other way to write
>it - the DOM hadn't yet been published.  Remember that the JS WDDX library
>included in the official SDK was written in what... 1998?  1999?

Not that it really matters, but IE4 had XML support via an ActiveX
object--and that was circa 1998 (or at least very early 1998.) IE5 was
released in 1999 as well--I believe in March of 1999.

Also, Allaire did upgrades to the WDDX.js file in late 2000/early 2001 as
well (and they may have made changes to it more recently.)

So, well IE did have XML support when Allaire was actively working on WDDX,
maximum browser compatibility was much higher on the list. Plus, and this is
speculation, I don't think they were really thinking people would be trying
to deserialize large XML data chunks via straight JS. At the time, the
thought was that WDDX would be more used to serialize JS data.


>Did that... here's the link.  ;^)
>
>http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_
>W
>DDX/Index.cfm
>
>I only did DOM processing for deserialization (serialization seems just
>fine
>as string concatenations and building a DOM object by hand is tedious as
>all-get-out).

Good to know. As much as I've used WDDX in the past, I generally have only
serialized data in JS. I don't know that I've actually ever tried
deserializing WDDX via JS. 

I might play around with that later on.

-Dan



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220120
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to