[mochikit] Re: Maximum Post length in IE
If I recall correctly, it is HTTP GET requests that are limited in size (or really URL length). Send your data with HTTP POST instead and you'll get all kinds of other benefits as well. /Per On Nov 28, 2007 1:09 AM, Daniel Fetchinson [EMAIL PROTECTED] wrote: Does anybody know of a workaround to the limitation that IE puts on a URL Post? I believe it limits the number of characters to be 2048. Of course, my requests work fine in Firefox, but I need to make the app IE compatible. I use the doXHR() function for my xmlHttpRequests. Splitting the text into several chunks and sending them separately? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: Maximum Post length in IE
I am already trying to use a POST request: var def = doXHR('/path/function_name', {'method':'POST', 'queryString': {key:serializeJSON(my_array)}}); var d = def.addCallback(evalJSONRequest); d.addCallback(a_js_function); d.addErrback(another_js_function); return false; This is working perfectly fine in Firefox, but in IE, I'm getting an AlreadyCalledError in my .addErrback function. Also, this method is working in IE on other pages with smaller requests, so I assumed it was something to with request length b/c of this: http://support.microsoft.com/default.aspx?scid=KB;en-us;q208427 it appears to apply to both GET and POST requests. Any help is greatly appreciated... On Nov 28, 3:18 am, Per Cederberg [EMAIL PROTECTED] wrote: If I recall correctly, it is HTTP GET requests that are limited in size (or really URL length). Send your data with HTTP POST instead and you'll get all kinds of other benefits as well. /Per On Nov 28, 2007 1:09 AM, Daniel Fetchinson [EMAIL PROTECTED] wrote: Does anybody know of a workaround to the limitation that IE puts on a URL Post? I believe it limits the number of characters to be 2048. Of course, my requests work fine in Firefox, but I need to make the app IE compatible. I use the doXHR() function for my xmlHttpRequests. Splitting the text into several chunks and sending them separately? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: Maximum Post length in IE
Hi, You're making a POST request, but you still transfer the data in the query string of the URL, so the limit on the length of the URL still applies. You need to transfer the data in the request body instead, using doXHR's sendContent option. Best regards, Pär On 11/28/07, g [EMAIL PROTECTED] wrote: I am already trying to use a POST request: var def = doXHR('/path/function_name', {'method':'POST', 'queryString': {key:serializeJSON(my_array)}}); var d = def.addCallback(evalJSONRequest); d.addCallback(a_js_function); d.addErrback(another_js_function); return false; This is working perfectly fine in Firefox, but in IE, I'm getting an AlreadyCalledError in my .addErrback function. Also, this method is working in IE on other pages with smaller requests, so I assumed it was something to with request length b/c of this: http://support.microsoft.com/default.aspx?scid=KB;en-us;q208427 it appears to apply to both GET and POST requests. Any help is greatly appreciated... On Nov 28, 3:18 am, Per Cederberg [EMAIL PROTECTED] wrote: If I recall correctly, it is HTTP GET requests that are limited in size (or really URL length). Send your data with HTTP POST instead and you'll get all kinds of other benefits as well. /Per On Nov 28, 2007 1:09 AM, Daniel Fetchinson [EMAIL PROTECTED] wrote: Does anybody know of a workaround to the limitation that IE puts on a URL Post? I believe it limits the number of characters to be 2048. Of course, my requests work fine in Firefox, but I need to make the app IE compatible. I use the doXHR() function for my xmlHttpRequests. Splitting the text into several chunks and sending them separately? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: Maximum Post length in IE
Yes! Thank you Pär! On Nov 28, 10:00 am, Pär Wieslander [EMAIL PROTECTED] wrote: Hi, You're making a POST request, but you still transfer the data in the query string of the URL, so the limit on the length of the URL still applies. You need to transfer the data in the request body instead, using doXHR's sendContent option. Best regards, Pär On 11/28/07, g [EMAIL PROTECTED] wrote: I am already trying to use a POST request: var def = doXHR('/path/function_name', {'method':'POST', 'queryString': {key:serializeJSON(my_array)}}); var d = def.addCallback(evalJSONRequest); d.addCallback(a_js_function); d.addErrback(another_js_function); return false; This is working perfectly fine in Firefox, but in IE, I'm getting an AlreadyCalledError in my .addErrback function. Also, this method is working in IE on other pages with smaller requests, so I assumed it was something to with request length b/c of this:http://support.microsoft.com/default.aspx?scid=KB;en-us;q208427 it appears to apply to both GET and POST requests. Any help is greatly appreciated... On Nov 28, 3:18 am, Per Cederberg [EMAIL PROTECTED] wrote: If I recall correctly, it is HTTP GET requests that are limited in size (or really URL length). Send your data with HTTP POST instead and you'll get all kinds of other benefits as well. /Per On Nov 28, 2007 1:09 AM, Daniel Fetchinson [EMAIL PROTECTED] wrote: Does anybody know of a workaround to the limitation that IE puts on a URL Post? I believe it limits the number of characters to be 2048. Of course, my requests work fine in Firefox, but I need to make the app IE compatible. I use the doXHR() function for my xmlHttpRequests. Splitting the text into several chunks and sending them separately? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---
[mochikit] Re: What is the purpose of __class__?
It's only used for introspection. Some of the repr's use it, the ones that don't probably should. It's not otherwise very interesting. -bob On 11/28/07, Jason Bunting [EMAIL PROTECTED] wrote: I see this convention being used but don't understand why it exists: __class__ Is it simply a Pythonic type of convention that isn't being used currently? What is the point of it and how can it be beneficially used? Thanks, Jason Bunting --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups MochiKit group. To post to this group, send email to mochikit@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/mochikit?hl=en -~--~~~~--~~--~--~---