{"id":381,"date":"2006-11-20T12:24:46","date_gmt":"2006-11-20T18:24:46","guid":{"rendered":"http:\/\/www.mooreds.com\/wordpress\/?p=381"},"modified":"2006-12-05T14:56:37","modified_gmt":"2006-12-05T20:56:37","slug":"gwt-internet-explorer-quirks","status":"publish","type":"post","link":"https:\/\/www.mooreds.com\/wordpress\/archives\/381","title":{"rendered":"GWT Internet Explorer quirks"},"content":{"rendered":"<p>I am building another <a href=\"http:\/\/code.google.com\/webtoolkit\/\">GWT<\/a> component and ran across two IE quirks that I would like to share.<\/p>\n<p>1. Multiple modules on one page: I could not find a way to have two GWT modules on the same page&#8211;that is, having two gwt:module meta tags on one page.  (Having two on one page works fine in FireFox, as long as gwt.js is only included once.)  Instead, I followed the advice <a href=\"http:\/\/groups.google.com\/group\/Google-Web-Toolkit\/browse_thread\/thread\/2578b2cf2bdaf3d1\/f2b58537acec5e7c\">in this post<\/a>, and created a hybrid module that inherited from both modules I wanted to display.  In the two modules I was inheriting from, I simply check to see if a span is available to put the module&#8217;s UI in. (Don&#8217;t forget that <a href=\"http:\/\/code.google.com\/webtoolkit\/documentation\/com.google.gwt.doc.DeveloperGuide.Fundamentals.Modules.ModuleXml.html\">inheritance is defined differently for GWT<\/a> than for a typical programming language.)<\/p>\n<p>2. Cookie size limits: Cookies set by GWT have limit in size in IE.  Again, I didn&#8217;t see the same behavior with FF1.5, but IE 6.00.29 has a limit of 802 characters in the value portion of a cookie.  (The name I was using was 5 characters long.)  Longer values can be set, and are sent to the server, but I could not find a way to read cookies with a length longer than 802.  I didn&#8217;t drop down into JSNI because I looked at the <a href=\"http:\/\/code.google.com\/webtoolkit\/documentation\/com.google.gwt.user.client.Cookies.html\">Cookies<\/a> source code and couldn&#8217;t see what I&#8217;d do different.<\/p>\n<p><em>Update Dec 5 2006: I was trying to nail this down to submit a bug report to Google, but saw some really weird behavior with IE&#8217;s cookies.  It seemed to handle a cookie longer than 802, then it seemed to not handle such a cookie, and now it is handling a cookie with value length of 1202.  See <a href=\"http:\/\/www.mooreds.com\/cookietest\/test.html\">this page<\/a> for an example.  The first two cookies have a length of 802, the second two have a length of 1202.  Weird!<\/em><\/p>\n<p>[tags]cookies,GWT, Google Web Toolkit, Internet Explorer, multiple modules[\/tags]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am building another GWT component and ran across two IE quirks that I would like to share. 1. Multiple modules on one page: I could not find a way [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18],"tags":[],"class_list":["post-381","post","type-post","status-publish","format-standard","hentry","category-gwt"],"_links":{"self":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/381","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/comments?post=381"}],"version-history":[{"count":0,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/posts\/381\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/media?parent=381"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/categories?post=381"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mooreds.com\/wordpress\/wp-json\/wp\/v2\/tags?post=381"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}