Debug Inline

5 views
Skip to first unread message

justin kruger

unread,
Sep 29, 2010, 6:53:10 PM9/29/10
to opensocial-develo...@googlegroups.com
Is there a way with OSDE to render the gadget's inline so they are
more easily debugged?

--
--
--
Justin Kruger
Social Media Software Engineer -
San Francisco, CA

--
http://twitter.com/jdavid
http://www.linkedin.com/in/jdavid

Robson Dantas

unread,
Sep 29, 2010, 8:09:39 PM9/29/10
to opensocial-develo...@googlegroups.com
Justin,

What do you mean when saying rendering the gadget inline ?

Example ?

-Robson Dantas

2010/9/29 justin kruger <justin...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "OpenSocial Development Environment" group.
To post to this group, send email to opensocial-develo...@googlegroups.com
To unsubscribe from this group, send email to opensocial-development-...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/opensocial-development-environment

justin kruger

unread,
Sep 29, 2010, 8:38:50 PM9/29/10
to opensocial-develo...@googlegroups.com
Right now the gadget url is sent to an external browser, because the
internal IE one does not work.

Externally I am loading that local url into chrome.
http://localhost:8123/gadgets/files/osdecontainer/index.html?url=http://localhost:8123/Mentor.v1/Mentor-Views2.xml&view=canvas.owner&width=100&appId=34fcbd7ccc980f1cbd03247c857cd478&country=US&language=en&userPrefs={}&use_st=1&viewerId=conrad.doe&ownerId=conrad.doe

this url, produces an html file that contains an iframe which has my
gadget code.

if i want to navigate inside that iFrame with jquery, i need to first get scope
var gf = document.getElementById('remote_iframe_0').contentWindow;
var i$ = gf.$;

// so this will work
gf.gadgets.views.getSupportedViews()

it however is pretty annoying to have to copy and paste those two
lines of JS to access the content in every iFrame. I like to develop
live in chrome, and then copy working code into my script file.

if the gadget content was rendered without an iFrame and in a Div,
this would be easier.

the other option is to some how stub these two lines of code into the base page.

Reply all
Reply to author
Forward
0 new messages