Hi all,

I happen to have a chance to write a bookmarklet which retrieves Orkut
gadget app's XML source code out of canvas view page. I would like to
share it with people in Orkut dev group hoping this will help someone
learning creating apps/gadgets.

javascript:var%20inner_doc%20=
%20document.getElementsByTagName('iframe')[0].contentDocument;var
%20iframes%20=%20inner_doc.getElementsByTagName('iframe');var%20src%20=
%20iframes[0].src.replace(/^.*?\?url=(.*?)&.*$/i,
%20%22$1%22);window.open(decodeURIComponent(src));undefined;

1. Create a bookmark with above destination on your browser.
2. Click it when you are seeing gadget canvas view page.
3. Gadget xml page will pop up.

This is doing nothing special or tricky, but helps you find source
code easier so that you can learn how other people are coding their
gadgets.


Eiji
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Orkut 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/opensocial-orkut?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to