Your navigateToCanvas function is returning the function object but
not executing it. Replace it with the snippet below and it should
navigate appropriately.
function navigateToCanvas()
{
alert('You have clicked');
gadgets.views.requestNavigateTo(new gadgets.views.View('canvas'));
}
- Jason
On May 29, 12:35 am, sb <[EMAIL PROTECTED]> wrote:
> I have created two contents in my xml. One for profile view and the
> second for canvas
>
> For the profile view I did set this
>
> <div id="profileview" onclick="navigateToCanvas();">
>
> and the navigateToCanvas is as below.
>
> function navigateToCanvas()
> {
> alert('You have clicked');
> return function() { gadgets.views.requestNavigateTo(new
> gadgets.views.View('canvas')); };
> }
>
> When I click on the gadget in profile view. I see the alert 'You have
> clicked' but its not navigating to the canvas view. Any thoughts on
> this ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---