url type gadgets are not presently supported in OpenSocial.

                                (Dan)

On Nov 3, 2007, at 11:20 PM, Amit Upadhyay wrote:

>
> Hi,
>
> I am trying to make a gadget with "url" contenttype [http://
> code.google.com/apis/gadgets/docs/fundamentals.html#URL], and let me
> just say the following snippet is less than helpful, when I am trying
> to convert it to python.
>
>     <?php
>       // Parse gadget URL and emit <script src=...</script> statements
> into the HTML output.
>       // The <script src=...</script> statements will load the
> libraries passed in via the URL.
>       $libraries = split(",", $_GET["libs"]);
>       foreach ($libraries as $script) {
>         if (preg_match('@^[a-z0-9/[EMAIL PROTECTED]', $script)
>           && !preg_match('@([.][.])|([.]/)|(//)@', $script)) {
>             print "<script src='http://www.google.com/ig/f/$script'></
> script>";
>         }
>       }
>     ?>
>
> I am getting 404 for http://www.google.com/ig/f/c/opensocial-0.5/ 
> orkut,
> when I blindly substitute $script to URL without passing them through
> the regular expressions [which works for other urls].
>
> I tried adding <script type="text/javascript" src="http://r5oub4bm-
> a.gmodules.com/46/o/0.5/opensocial.js"></script>
> 12 <script type="text/javascript" src="http://r5oub4bm-a.gmodules.com/
> 46/o/orkutcontainer1.js"></script> to my app, that I "discovered" when
> seeing some other apps that are working, but its not working either,
> in this case the json request goes back to my server, and gets 404ed.
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OpenSocial Developers" group.
To post to this group, send email to opensocial-api@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/opensocial-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to