ajax serialization

Different kinds of serialization of data are possible.

AHAH

Return prerdendered HTML from server:

  • less effort in client +
  • data not really reusable in client -
  • data to serialization overhead great -
  • no parsing needed +

Json

return a javascript object noted as javascript and eval it.

  • using eval in client -
  • data to serialization overhead small +
  • data optimal reusable ++
  • no parsing needed +

Xml

Generate a XML Format and use a clientside logic to use the data via dom operations.

  • dom parsing of data slow -
  • data to serialization overhead great -
  • data good reusable +
  • xml parsing needed -



WDDX

Wddx has its origins in Xold Fusion and is a XML Format to serialize and deserialize Data and Objects. PHP has wddx support.

  • wddx in js slow & not usable for large datasets --
  • data to serialization overhead great -
  • data good reusable +
  • xml parsing needed -
  • ease of use +


Soap

Even webservices can be used. Objects are invoked from webservices.
  • data to serialization overhead great -
  • data optimal reusable ++
  • xml parsing needed -


No Serialization


Data comes unserialized from server as text and is passed into a string.
  • fast data -> js ++
  • no serilalization +
  • data reusable +
  • no xml parsing needed +
  • only one result and value can be used --
Related Entries:
pnajax with json further developments
everthing new
foxy web developer toolbox
talk at xtech
sebs 1 eval in jsObjects 0
Comments (6)  Permalink