Hi Dean,

How are you triggering the alert? Just including it at the top of the
JS might not be sufficient. I would suggest executing the code inside
of gadgets.util.registerOnLoadHander.

Best,
Dan

On Oct 29, 7:44 am, Dean <[EMAIL PROTECTED]> wrote:
> Is there any way to detect when a user switches between canvas and
> home views? I'd like to change the title of my gadget based on the
> view.
>
> I tried inserting the following code at the top of my javascript:
>
> alert("View = " + gadgets.views.getCurrentView().getName());
>
> The alert shows up when going from canvas to home, but not from home
> to canvas.
>
> Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to