im running into same problem ..in caanvas mode height is stuck at 100px did you solve the problem
On Thursday, January 6, 2011 6:35:01 PM UTC+5:30, Charles Busch wrote: > > Nicky, > > You nailed it, thanks. > > If you wouldnt mind looking again, I am trying to adjust the height of the > Sidebar=100pxl, and when I go to canvas view I would like 500pxl. I can > only get it to match, either both the sidebar and the canvas view at 100 or > both at 500. Let me know if its easy to tell what I am doing wrong. > > Thanks > > <?xml version="1.0" encoding="UTF-8" ?> > <Module> > <ModulePrefs title="Start Over" description="Gadget Desciption" > author="Busch" author_email="[email protected] <javascript:>" > category="tools" screenshot=" > https://www.lighthousegroup.net/Login?url=HTTPS%3a%2f%2fwww.lighthousegroup.net%2fTitle_GFE_Rapid_Quote%3fgfe%3d-1" > > thumbnail="http://www.skyprolegal.com/Test/Gadget/gfe.gif" height="100"> > <Require feature="views"/> > <Require feature="dynamic-height"/> > <Require feature="settitle"/> > <Optional feature="maximize"/> > </ModulePrefs> > <Content type="html" view="home"> > <![CDATA[ > <div>Hello world Home</div> > <script type="text/javascript"> > > function goToView(dest) { > var supported_views = gadgets.views.getSupportedViews(); > gadgets.views.requestNavigateTo(supported_views[dest]); > gadgets.views.adjustHeight(500); > }; > </script> > > <a href="javascript:goToView('canvas')" >Go to canvas view</a><br><br> > ]]> > </Content> > <Content view="canvas,profile,default" type="url" href=" > https://Mydestination.com"> > <![CDATA[ > <div>Hello World Canvas</div> > <script type="text/javascript"> > > function goToView(dest) { > var supported_views = gadgets.views.getSupportedViews(); > gadgets.views.requestNavigateTo(supported_views[dest]); > gadgets.views.adjustHeight(100); > }; > </script> > <a href="javascript:goToView('home')" >Go to Home view</a><br><br> > ]]> > </Content> > </Module> > > On Wed, Jan 5, 2011 at 10:22 AM, nicky <[email protected] <javascript:>>wrote: > >> Try removing the backslash from ModulePrefs. You're ending module >> prefs twice. >> >> should be like this when features are included: >> >> <ModulePrefs title="example"> >> <Require feature="views"/> >> </ModulePrefs> >> >> On Jan 4, 12:04 am, Charles Busch <[email protected]> wrote: >> > Have you run across any example code that does work ??? >> > >> > >> > >> > On Mon, Jan 3, 2011 at 5:15 PM, nicky <[email protected]> wrote: >> > > I often test my gadgets in the sidebar of Gmail. As far as I know, >> > > there is no way to navigate from canvas view to home view . When in >> > > canvas view, a user can simply select e.g. Inbox from the sidebar to >> > > navigate away. So, canvas to home view will not work in Gmail. >> > >> > > I'm not sure why go to canvas view does not work..the actual code >> > > looks ok. Maybe try keeping all the HTML together. >> > >> > > On Jan 2, 5:18 pm, Charles Busch <[email protected]> wrote: >> > > > Can anyone help me, I have successfully created a sidebar gadget >> that >> > > will >> > > > expand to canvas view when the user clicks the Title Bar on the >> gadget, >> > > but >> > > > I have been unable to make the following code function to expand to >> > > canvas >> > > > view by clicking hypertext or a button. >> > >> > > > Here is the code, why wont it work. >> > >> > > > <?xml version="1.0" encoding="UTF-8" ?> >> > > > <Module> >> > > > <ModulePrefs title="Start Over" description="Gadget Desciption" >> > > > author="Busch" author_email="[email protected]" category="tools" >> > > > screenshot=" >> https://www.lighthousegroup.net/Title_GFE_Rapid_Quote?gfe=-1 >> > > " >> > > > thumbnail="http://www.skyprolegal.com/Test/Gadget/gfe.gif" >> > > height="100"/> >> > > > <Require feature="views"/> >> > > > </ModulePrefs> >> > > > <Content type="html" view="home"> >> > > > <![CDATA[ >> > > > <div>Hello world Home view</div> >> > > > <script type="text/javascript"> >> > >> > > > function goToView(dest) { >> > > > var supported_views = gadgets.views.getSupportedViews(); >> > > > gadgets.views.requestNavigateTo(supported_views[dest]); >> > > > }; >> > > > </script> >> > >> > > > <a href="javascript:goToView('canvas')" >Go to canvas >> view</a><br><br> >> > >> > > > ]]> >> > > > </Content> >> > > > <Content type="html" view="canvas"> >> > > > <![CDATA[ >> > > > <div>Hello world Canvas view</div> >> > > > <script type="text/javascript"> >> > >> > > > function goToView(dest) { >> > > > var supported_views = gadgets.views.getSupportedViews(); >> > > > gadgets.views.requestNavigateTo(supported_views[dest]); >> > > > }; >> > > > </script> >> > > > <a href="javascript:goToView('home')" >Go to home view</a><br><br> >> > > > ]]> >> > > > </Content> >> > > > </Module> >> > >> > > -- >> > > 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]<javascript:> >> . >> > > To unsubscribe from this group, send email to >> > > [email protected] <javascript:> >> <Google-Gadgets-API%2BunsubsĀ[email protected] <javascript:>> >> > > . >> > > For more options, visit this group at >> > >http://groups.google.com/group/Google-Gadgets-API?hl=en.- Hide quoted >> text - >> > >> > - Show quoted text - >> >> -- >> 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]<javascript:> >> . >> To unsubscribe from this group, send email to >> [email protected] <javascript:>. >> 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]. Visit this group at http://groups.google.com/group/Google-Gadgets-API?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
