The current gadgets.js *relies *on gmodules.com to get prefs (and it *SHOULD
*be rewritten to use RpcServlet, but that's a *TODO*), and if
gmodules.comcan't see your gadget url i
*t won't be able to tell you* the prefs it uses.

I know I'm sounding like a broken record, but...

Don't rely on gadgets.js for production sites. It's not suitable for the
task. If / when someone rewrites it to use /gadgets/rpc to get the pref
specifications, we'll have an all around solution that can be used out of
the box. I *think* Paul was working in this area, but I don't really know
because I've been focused mainly on features and the gadgets server lately.
If you want support for this sooner, please feel free to submit a patch.

On Wed, Mar 5, 2008 at 9:28 PM, Neo Anderson <[EMAIL PROTECTED]>
wrote:

> Yes, will it work if somebody uses local gadget server?
>
> On Thu, Mar 6, 2008 at 10:57 AM, Arun Kumar <
> [EMAIL PROTECTED]>
> wrote:
>
> > If I use my local gadgets server instead of gmodules.com, will it work
> or
> > not?
> >
> > On Thu, Mar 6, 2008 at 3:10 AM, Kevin Brown <[EMAIL PROTECTED]> wrote:
> >
> > > Is the url of your gadget publicly available? The current
> > gadgets.jsrelies
> > > on gmodules.com to get prefs (and it SHOULD be rewritten to use
> > > RpcServlet,
> > > but that's a TODO), and if gmodules.com can't see your gadget url it
> > won't
> > > be able to tell you the prefs it uses.
> > >
> > > On Wed, Mar 5, 2008 at 8:21 AM, Neo Anderson <
> > > [EMAIL PROTECTED]>
> > > wrote:
> > >
> > > > My XML file content is:
> > > >
> > > >
> > > > <?xml version="1.0" encoding="UTF-8"?>
> > > >
> > > > <Module>
> > > >
> > > > <ModulePrefs title="User Preferences title" category="tools"
> > > >
> > > > author="Neo Anderson"
> > > >
> > > > description="__MSG_description__">
> > > >
> > > > <Require feature="setprefs" />
> > > >
> > > > <Require feature="dynamic-height" />
> > > >
> > > > </ModulePrefs>
> > > >
> > > > <UserPref name="mychoice" display_name="List Params?"
> > datatype="bool"/>
> > > >
> > > > <UserPref name="myname" display_name="Name" required="true"/>
> > > >
> > > > <UserPref name="mycolor" display_name="Color" default_value="Blue"
> > > > datatype=
> > > > "enum">
> > > >
> > > > <EnumValue value="Red"/>
> > > >
> > > > <EnumValue value="Blue"/>
> > > >
> > > > <EnumValue value="Green"/>
> > > >
> > > > <EnumValue value="Yellow"/>
> > > >
> > > > <EnumValue value="Pink"/>
> > > >
> > > > <EnumValue value="Orange"/>
> > > >
> > > > <EnumValue value="White"/>
> > > >
> > > > </UserPref>
> > > >
> > > >
> > > >
> > > > <Content type="html">
> > > >
> > > > <![CDATA[
> > > >
> > > > Hi! How are you?<br>
> > > >
> > > > 1<br>
> > > >
> > > > 2<br>
> > > >
> > > > 3<br>
> > > >
> > > > 4<br>
> > > >
> > > > 5<br>
> > > >
> > > > 6<br>
> > > >
> > > > 7<br>
> > > >
> > > > 8<br>
> > > >
> > > > 9<br>
> > > >
> > > > 10<br>
> > > >
> > > > 11<br>
> > > >
> > > > 12<br>
> > > >
> > > > 13<br>
> > > >
> > > > 14<br>
> > > >
> > > > 15<br>
> > > >
> > > > 16<br>
> > > >
> > > > 17<br>
> > > >
> > > > 18<br>
> > > >
> > > > 19<br>
> > > >
> > > > 20<br>
> > > >
> > > > <script language="JavaScript">
> > > >
> > > > _IG_AdjustIFrameHeight();
> > > >
> > > > _IG_SetTitle("Features are working.");
> > > >
> > > > </script>
> > > >
> > > > ]]>
> > > >
> > > > </Content>
> > > >
> > > > </Module>
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > dynamic-height and settitle features are working. but when I click
> on
> > > > settings link, then I am not able to get the user preferences
> fields.
> > I
> > > am
> > > > getting just Save and Cancel buttons. What might be the problem?
> > > >
> > >
> > >
> > >
> > > --
> > > ~Kevin
> > >
> >
>



-- 
~Kevin

Reply via email to