Hi,

It is possible to add a gadget usign DOM or the innerHTML attrbute ?

I mean something like this:

<script language="javascript">
function muestra()
{

 script = document.createElement('script');
  script.src = "http://www.gmodules.com/ig/ifr?url=http://
www.google.com/ig/modules/datetime_v2/datetime_v2.xml&amp;up_color=blue&amp;up_dateFormat=wdm&amp;up_firstDay=0&amp;up_clocks=%5B%5B-73.986951%2C40.756054%2C%22New%20York%22%2C0%5D%5D&amp;synd=open&amp;w=320&amp;h=140&amp;title=__MSG_title__&amp;lang=es&amp;country=ALL&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js";

l=document.getElementById("con")
  l.appendChild(script);
l2=document.getElementById("con2")
l2.innerHTML='<script src="http://www.gmodules.com/ig/ifr?url=http://
www.google.com/ig/modules/datetime_v2/datetime_v2.xml&amp;up_color=blue&amp;up_dateFormat=wdm&amp;up_firstDay=0&amp;up_clocks=%5B%5B-73.986951%2C40.756054%2C%22New%20York%22%2C0%5D%5D&amp;synd=open&amp;w=320&amp;h=140&amp;title=__MSG_title__&amp;lang=es&amp;country=ALL&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"><\/script>';

}
</script>
</head>

<body onload="muestra()">
<div id="con" style="float:left;width:400px;height:400px;border:1px
solid red"></div>
<div id="con3" style="float:left;width:200px;height:400px;border:1px
solid red">
<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/
ig/modules/datetime_v2/
datetime_v2.xml&amp;up_color=blue&amp;up_dateFormat=wdm&amp;up_firstDay=0&amp;up_clocks=
%5B%5B-73.986951%2C40.756054%2C%22New%20York%22%2C0%5D
%5D&amp;synd=open&amp;w=320&amp;h=140&amp;title=__MSG_title__&amp;lang=es&amp;country=ALL&amp;border=
%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>
</div>
<div id="con2" style="float:right;width:400px;height:400px;border:1px
solid red"></div>
</body>


Thanks for your help.

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