Okay, I see where you're coming from then. You're right the data could
get corrupted in transit from the server to the client.
Cheers,
Chris
Klaus Hartl wrote:
Christopher Jordan schrieb:
I may be showing my ignorance here, but why (or maybe more appropriately
"how") would invalid json code get returned by your ajax call? Shouldn't
you just make sure that the data coming back is valid json? Maybe I've
not run into this because I'm using Jehiah Czebotar's CFJson (obviously,
my back end is ColdFusion), and it's because his code is good at
converting my data structures into json. I dunno. What do you think?
Chris
Chris, you could of course make sure that the JSON is valid, but even
then coder make mistakes and more important, you can never know what you
are getting back over the network (maybe there's a database error on
server-side, a timeout or whatever).
That said, I think it should be as fail-safe as possible.
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/