ajax serialization
Different kinds of serialization of data are possible.
AHAH
Return prerdendered HTML from server:
Json
return a javascript object noted as javascript and eval it.
Xml
Generate a XML Format and use a clientside logic to use the data via dom operations.
WDDX
Wddx has its origins in Xold Fusion and is a XML Format to serialize and deserialize Data and Objects. PHP has wddx support.
Soap
Even webservices can be used. Objects are invoked from webservices.
No Serialization
Data comes unserialized from server as text and is passed into a string.
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 --