Hello all fellow T-Gers, Here is a small account of how I fixed a "Sysem Error" occurring on Internet Explorer 6 when I tried to use a RemoteForm widget. I post here in the hope that it will help someone and spare time to many.
I had a RemoteForm working properly since a few weeks on my dev machine and did not bother to test on Windows for a while... (Baaad thing when you do web development) What was not my surprise when I finally tried to use this form on IE6/Win2K. IE borked-out miserably with a much sympathetic message about: "system error: -1072896658". After a few googling around I finally found a blog entry where some information was available: http://www.panoramio.com/blog/explorer-system-error-1072896658/ So adapting the information from this page it was now piece of cake: To make the RemoteForm work with IE6 you have to make sure that the target method that will be called by the javascript portion of the widget returns a content type header. So in order to make it work with IE6 I added the following to my @expose(): content_type="text/html; charset=UTF-8" which became: @expose(template="xxx", fragment=True, content_type="text/html; charset=UTF-8") For those wondering why I use a template instead of just some small html snippet this is because I return a widget from my controller to be displayed by the underlying engine. I purposefully put "UTF-8" in uppercase because it is reported on the above mentionned page that IE6 on Windows XP will not work if it is in lowercase. I tested with my IE6 on Windows 2000/SP4 but even with lower-case it works... but since you are never too prudent when it comes to IE bugs & glitches I decided to keep it uppercase anyway. :) I hope this info will be useful to someone else, Cheers, Florent Aide. --~--~---------~--~----~------------~-------~--~----~ 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?hl=en -~----------~----~----~----~------~----~------~--~---

