Hi, I have a igoogle gadget that works except I cant figure out a way
to link to the canvas from within the iframe.
For example I have:
function display() {
var html = '<iframe name="smallone" border="0" src="http://
myserver/small.html" height="200" width="100%" frameborder="0"
marginwidth="0" marginheight="0"></iframe>';
_gel('content_div').innerHTML = html;
resize();
}
If I put a link from the main xml file like:
document.write('<a href="javascript:goToView(\'canvas\')">Test
Now</a>');
It works great.
However, If I try to link from within the iframe, it doesnt work. I
tried calling parent.goToView (this gave me a permission problem). I
tried including the google modules in my iframe, but it said gadgets
variable is not defined when trying to switch view there.
I notice new york times top stories has what I want, the "More News"
link takes you to the canvas. But they seem to be using json instead
of an iframe. Do I need to do this with json instead?
Also, is there a well known way to link to a canvas from an external
site? For example I want to put a link that will take users to the
canvas view within igoogle for a given gadget. Is this possible?
thanks
Joel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---