but I can put a gadget on a site and the content of the gadget be viewed by anyone that gets to my webpage right?
1. I create a google gadget that the owner of the site can add and setup user preferences. These preferences will be set via javascript because I need more functionality than standard UserPrefs so I place the options in html code of the gadget. 2. I add the gadget to my webpage (google sites) and update the user preferences through my UI. 3. I allow the site to be viewed by another user (not the owner) 4. I want to detect the the user is not the owner of the site and hide a portion of my UI that sets the User Preferences. So I have 2 parts of the content html. 1 part to set the user preferences via javascript and 1 part the renders things based upon the user preferences set. (all within the same content tag of course). how do I detect they are not the owner in the html so I can hide the user preferences part of the my UI. (again it is my user preferences, not the gadgets. That is done for me) Hopefully this makes sense.... :-) On Wed, Jun 23, 2010 at 4:58 PM, Rob Russell <[email protected]> wrote: > iGoogle gadgets can only be viewed by the owner. Are you thinking of Google > Friend Connect or Orkut gadgets perhaps? > > Rob Russell > Google Developer Relations > > > > On Wed, Jun 23, 2010 at 9:48 AM, nyronian <[email protected]> wrote: > >> Any thoughts on this? I need to have a more robust user preferences >> (which I will write in my html) but I want them to only be exposed to >> the anyone that gadgets would normally give user preference options. >> So if google gadgets is restricting user preferences (the menu is not >> avialable) then I want to be sure to restring my html page as well to >> not allow user preferences to be set. >> >> Any help would be appreciated. >> >> Thanks >> >> On Jun 21, 4:08 pm, nyronian <[email protected]> wrote: >> > Is there a way in javascript to know if the current user can modify >> > user preferences or not? >> > >> > I am creating a web page that will allow the user to modify user >> > preference (I will update them programatically) but I only want them >> > available if the user has access to modify user preferences. >> > >> > If, for instance, the gadget is placed on a web page, it can only be >> > modified when the page is being edited. Anybody viewing the google >> > site, cannot modify the user prefences, therefore I want to hide a >> > portion of the page. >> > >> > Thank you in advance. >> >> -- >> 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]<google-gadgets-api%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/Google-Gadgets-API?hl=en. >> >> > -- > 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]<google-gadgets-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/Google-Gadgets-API?hl=en. > -- 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.
