An FYI for anyone experimenting with jDivLoad ...

If you deploy a web2py app using jDivLoad to Google App Engine (this
does not happen in the SDK), you may receive 411 errors when those
jDiv's attempt to load while using Firefox (this issue is not
necessarily isolated to just GAE).

The jDivLoad function provided in the webpy_ajax.html sample code
utilizes the jQuery .ajax call to post the request. If you do not
provide any data for the jDIvLoad params parameter (which is then
passed as the jQuery .ajax data parameter as null) you will receive
the 411 error from GAE.

To remedy the above situation, you need to ensure that you are not
passing null for the data parameter of the jQuery .ajax function when
performing a post. Add the following line prior to the .ajax call in
jDivLoad to catch this error:

params = params || {};

Ted




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to