OZONE Asylum
Forums
DHTML/Javascript
Eclipse goes Ajax
This page's ID:
27748
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
I admit I've not tried to do [url=http://blogs.apress.com/archives/2005_10.html]code injection in JSON[/url] with the real JSON library, but that's what I had in mind when I said XML parsing is cleaner/safer. Indeed it all depends on the context. We've finished an Ajax application on mobile phone. The JAVA backend does its job and returns some XML documents including some datas from various content providers. The depth of the XML documents we receive is 4-5 levels at most, so it's really easy to parse. We have a Parser singleton with a method to parse each type of requests ( i.e. news, search, ... ). We also use XML because we receive some HTML markup that we sanitize ( using a whitelist of tags and attributes, using DOM parsing and of course NOT appending the markup to the [i]innerHTML[/i] of an element in the DOM tree for the same reason that we don't use [i]eval()[/i] ) to keep a decent presentation even though some times we receive an indigest tag soup. [url=http://www.p01.org/][sigrotate][img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_love_small.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_charly.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_dk.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_reason.gif[/img]|[img]http://poi.ribbon.free.fr/files/p01_ozoneasylum_sig_galaxy.gif[/img][/sigrotate][/url] [small](Edited by [url=http://www.ozoneasylum.com/user/2185]poi[/url] on 04-09-2006 18:10)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »