Hi.

I wrote a library to use standard mode instead of quirks mode in
iGoogle Gadget.
This library creates an IFRAME covering the whole of your gadget
client area,
then inject your gadget content into the IFRAME with DTD. You can call
some
Gadget APIs (gadgets.io, gadgets.Prefs, gadgets.window etc...) in the
IFRAME.

Using this library is very easy. At first, put your gadget content
into a hidden DIV
which has id="_std_content" attribute. If your content has javascript
code, it should
be wrapped by "if(window.StdIG) { ... }" to prevent from duplicated
execution.

<div id="_std_content" style="display:none;">
  <div>Hello Standard World!</div>
  <script type="text/javascript">
    if(window.StdIG) {
      document.open();
      document.write(document.compatMode);
      document.close();
    }
  </script>
</div>

Next, load "std-ig.js".

<script type="text/javascript">
  var url = gadgets.io.getProxyUrl('http://std-ig.googlecode.com/svn/
trunk/std-ig.js');
  document.open();
  document.write('<scr'+'ipt src="' + url + '"></scr' + 'ipt>');
  document.close();
</script>

For more information, please visite the project page.

http://code.google.com/p/std-ig/

If you are interested in this library, please try it and tell me your
opinion.

thanks!

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to