Hello, I'm new to iGoogle Gadget development and am trying to write my first gadget. I'm trying to create a URL type gadget, which pops up a mini message. I looked at the google documentation and wrote the php code to load the JavaScript Feature-Specific ibraries before calling the Gadget API calls to load the mini message. Seems like the libraries did not load since the mini message does not pop up. The same mini message code works fine in a HTML type gadget. Below are both the gadget xml and php codes.
Would be great to get any help on this. Thanks! Here is the XML code: <?xml version="1.0" encoding="UTF-8" ?> <Module> <ModulePrefs title="Test" author="Richi" height="400" width="350" scrolling="false" singleton="false"> <Require feature="minimessage"/> </ModulePrefs> <Content type="url" href="http://mysite/Test.php" view="home,canvas"/> </Module> And here is the Test.php code: <?php $libraries = split(",", $_GET["libs"]); foreach ($libraries as $lib) { if (preg_match('@^[a-z0-9/._-...@i', $script) && !preg_match('@([.][.])|([.]/)|(//)@', $script)) { print "<script src='http://www.google.com/ig/f/$script'></ script>"; } } ?> <script language = "JavaScript" type="text/javascript"> //call the onload event listener to call init() function init() { var msg = new gadgets.MiniMessage(__MODULE_ID__); var statusMsg = msg.createDismissibleMessage("This is a mini msg window"); } </script> --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
