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&up_color=blue&up_dateFormat=wdm&up_firstDay=0&up_clocks=%5B%5B-73.986951%2C40.756054%2C%22New%20York%22%2C0%5D%5D&synd=open&w=320&h=140&title=__MSG_title__&lang=es&country=ALL&border=%23ffffff%7C3px%2C1px+solid+%23999999&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&up_color=blue&up_dateFormat=wdm&up_firstDay=0&up_clocks=%5B%5B-73.986951%2C40.756054%2C%22New%20York%22%2C0%5D%5D&synd=open&w=320&h=140&title=__MSG_title__&lang=es&country=ALL&border=%23ffffff%7C3px%2C1px+solid+%23999999&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&up_color=blue&up_dateFormat=wdm&up_firstDay=0&up_clocks=
%5B%5B-73.986951%2C40.756054%2C%22New%20York%22%2C0%5D
%5D&synd=open&w=320&h=140&title=__MSG_title__&lang=es&country=ALL&border=
%23ffffff%7C3px%2C1px+solid+%23999999&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.