--
--
--
Justin Kruger
Social Media Software Engineer -
San Francisco, CA
--
http://twitter.com/jdavid
http://www.linkedin.com/in/jdavid
--
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
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.