Hi all,

I have firefox failing on the following whenever length >= 4096:

@expose("json")
def test(self, len):
    return 'x'*int(len)

FF is failing in a weird manner, loadJSONDoc returns nothing, and if I
load the url in a new tab it's as if the text is rendered with a white
font (!).

The HTTP RFC doesn't mention any length limitation and all Safari and
IE both accept anything like this.

I also verified this by serving up a static .js file (with apache)
that contained one long (4096 chars) line. Splitting the file on two
lines works.

Now, maybe I'm just crazy sending over 4K of data over json - but if
this is a real limit in FF could we change turbojson so that it will
split this across multiple lines? I will be filing a bug to Mozilla
though - but in any case it seems reasonable for the json encoder to
split across lines.

Arnar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to