Thank you for your response. The problem occurs even if only the MochiKit.Base module is included when MochiKit.js is built, and even if globals are not exported. If you delete everything below the opening comment block (w/ the Copyright notice) it works just fine, however. (-:
Two additional points: 1.) The problem (with this gadget) seems to manifest mostly on page reloads; you can go to the Canvas view once, but if you reload the page it looks like something blows up in the JS interpreter. I'm not sure if that behaviour is suggestive of anything. 2.) While testing this bug, I've found that Google's(?) caching is a royal PITA. Even if you flag the Gadget as uncached in the Developer view, external JS files might still be cached. (It seems inconsistent.) I find it's necessary to rename the external JS file for every test run (e.g. MochiKit2.js, MochiKit3.js, MochiKit4.js, etc.) in order to get meaningful results. -- Mike On Tue, Apr 28, 2009 at 8:51 PM, Per Cederberg <[email protected]> wrote: > > In order to break this down a bit, could you try the page with just > the MochiKit.Base module? Use the download customizer to create a > minimized version with the modules you wish to try. > > http://svn.mochikit.com/mochikit/trunk/packed/MochiKit/customize.html > > We need to know more details about which module that breaks to analyze > this. It is not a known issue. > > Cheers, > > /Per > > On Wed, Apr 29, 2009 at 1:32 AM, MXH <[email protected]> wrote: > > > > I'm having trouble using MochiKit with a Gadget I'm writing for the > > iGoogle interface. Specifically, even the inclusion of the > > MochiKit.js file (via a SCRIPT tag) seems to break otherwise- > > functional Gadgets in IE6 or (more seriously) IE7. (Other browsers > > seem fine.) > > > > Here's what I'm seeing: > > > > 1.) I create a Gadget that *doesn't* depend on MochiKit > > 2.) The Gadget works (i.e. it renders properly on load, which involves > > JS building up the DOM) > > 3.) I add a SCRIPT tag to the Gadget to import MochiKit.js > > 4.) The Gadget breaks (i.e. it won't render properly on load 90% of > > the time) > > > > Some clarifications: > > > > a.) The Gadget has an "html" Content Type (To clarify the > > clarification: "Content Type" refers to the parameter in Google's > > Gadget XML spec, not the HTML Header.) > > > > b.) This happens even if I include the "MochiKit={__export__:false};" > > line at the top of MochKit.js, which should suppess symbol export. > > > > c.) Again, the Gadget isn't making any use of MochiKit, it's just > > trying to import the JavaScript. > > > > d.) The failure is intermittent, but I've never seen it fail w/o the > > MochiKit include, and it fails ~90% of the time with the include, so I > > feel pretty sure the two are related. > > > > > > My question: "Is this a known problem? Has anyone else had > > experiences, good or bad, with IE6 or IE7 compatibility when using > > MochiKit to develop Google Gadgets?" > > > > Thanks for reading. If you're interested, the XML for the Gadget I am > > using for testing can be fetched here: > > > > http://www.house-o-games.com/neknek/gadgets/neknek.xml > > > > (The failure occurs in the "canvas" view".) > > > > > > > > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "MochiKit" 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/mochikit?hl=en -~----------~----~----~----~------~----~------~--~---
