Ok. But why did both examples from above work perfectly until a few weeks ago? They still work both in the sandbox but only the bottom one works in iGoogle. Did anything change in iGoogle? If so, what?
On 7 jul, 01:50, Justin McConnell <[email protected]> wrote: > On Jul 1, 2:23 am, Gert Spapen <[email protected]> wrote: > > > I have the gadget working again. > > It took me some time to figure it out but (since a few weeks) it seems > > that the following structure is not allowed anymore (only works in > > sandbox, but not live): > > > <xml> > > <style> > > <script> > > <body> > > You shouldn't put a body tag in type="html" gadgets. The renderer > does that for you. Use _IG_RegisterOnLoadHandler(changeContent) if > you want to run that function when the gadget gets to the end of the > body tag generated by your gadget. Or if you want to run that > function when the body is really finished loading everything like > scripts and images, use document.addEventListener. > > > Example:http://hosting.gmodules.com/ig/gadgets/file/104697802052088511132/zte... > > > This works fine: > > > <xml> > > <style> > > <body> > > <script> > > > Example:http://hosting.gmodules.com/ig/gadgets/file/104697802052088511132/zte... > > > Thanks, > > > Gert > > > 2009/7/1 Justin McConnell <[email protected]>: > > > > I found this post on the opensocial spec list: > > >http://groups.google.com/group/opensocial-and-gadgets-spec/msg/b1b4c4... > > > > In short, a gadget can now do this: > > > <![CDATA[ > > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/ > > > TR/html4/strict.dtd"> > > > > This makes it possible to force browsers to render in standards mode. > > > It seems this has been pushed to the production iGoogle container. I > > > wonder if this is one of those features that is just implemented in > > > the "new renderer"? Here is my test > > > case:http://bayareacoder.com/gogo/doctype.xml --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iGoogle Developer Forum" 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/Google-Gadgets-API?hl=en -~----------~----~----~----~------~----~------~--~---
