Hi.
I'm trying to find a way to have _IG_Prefs function defined when my
gadget runs in syndication mode.
It's a type="url" gadget and, as suggested in the documentation,
required modules are to be included using the below PHP code:
$libraries = split(",", $_GET["libs"]);
foreach ($libraries as $script) {
if (preg_match('@^[a-z0-9/._-...@i', $script)
&& !preg_match('@([.][.])|([.]/)|(//)@', $script)) {
print "<script src='http://www.google.com/ig/f/$script'></
script>\n";
}
}
The problem is that this code uses the "libs" HTTP GET parameter which
is not defined in syndication mode!
Does someone have a workaround?
Thanks in advance.
--
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.