The main.xml is always the primary view and you cannot exchange it or
switch to a different view. The only flexible view is the detailsview
where you can load any xml view you want.

If you want to handle different states of your gadget, you have two
options:
a) Create div container for the various views and show/hide them
according to your gadgets state.
b) Create all elements in code and then clear the view and create the
elements you need for the current state.

Most gadgets use the first way - especially if you have lots of
elements. However if you are creating many elements in code anyway
(e.g. processing an RSS feed) you can go with the second way. A mix of
both is also a valid approach.

Best regards,
Benjamin

On Nov 29, 11:14 am, dileep <[email protected]> wrote:
> Hi Friends,
>
> This is the first day I have started using google desktop... I have
> been able to write a gadgets that have single page. But what if want
> to move from one page to another.. like suppose I have given a login
> page(main.xml).. and if the login is successful.. I would show some
> menu to the user... as it is different view I need to create a new xml
> which corresponds to the menu.. how do I achieve this how do I change
> the view or navigate from one view to another.. I searched the api but
> could not find it..
>
> Thanks & Regards
> Dileep Kumar.

--

You received this message because you are subscribed to the Google Groups 
"Google Desktop Developer Group" 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-desktop-developer?hl=en.


Reply via email to