You really shouldn't be using this in a production environment. Use the
metadata service to get user prefs and display a dialog based on that.

On Tue, Apr 22, 2008 at 6:19 AM, Sanjay Shende <[EMAIL PROTECTED]>
wrote:

> Hi Neo,
>  Thanks. I figured out that Shindig is using gmodule for gadgetsettings.
> But the problem is my system is not the public on hence If the gadget is
> deployed on my local system then gmodule can not access it leading to no
> display of gadget settings. So how to overcome this problem, right now
> we are in development phase and can not provide public IP for each
> developer. So is there any alternative.
>
> Regards,
> Sanjay
>
> -----Original Message-----
> From: Neo Anderson [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 22, 2008 12:42 AM
> To: [email protected]
> Subject: Re: User preference dialog not shown
>
> I think currently shindig is not providing this facility. You may have
> to
> use gmodules.com for this purpose.
>
> Have a look at the method below (It is there in your gadgets.js file):
>
> gadgets.IfrGadget.prototype.handleOpenUserPrefsDialog = function() {
>  if (this.userPrefsDialogContentLoaded) {
>    this.showUserPrefsDialog();
>  } else {
>    var gadget = this;
>    var igCallbackName = 'ig_callback_' + this.id;
>    window[igCallbackName] = function(userPrefsDialogContent) {
>      gadget.userPrefsDialogContentLoaded = true;
>      gadget.buildUserPrefsDialog(userPrefsDialogContent);
>      gadget.showUserPrefsDialog();
>    };
>
>    var script = document.createElement('script');
>    script.src = 'http://gmodules.com/ig/gadgetsettings?url=' +
> this.specUrl +
>        '&mid=' + this.id + '&output=js' + this.getUserPrefsParams();
>    document.body.appendChild(script);
>  }
> };
>
>
>
> On Fri, Mar 28, 2008 at 6:36 PM, Sanjay Shende
> <[EMAIL PROTECTED]>
> wrote:
>
> > Hi All,
> >
> >            I have added user preferences using <UserPref >. But when I
> > click on "Settings"  link in the gadget, I do not get the user
> > preference dialog. Is there any thing extra that I need to in my xml
> > file. I inspected the xml for the other gadgets that are given in
> sample
> > html file and nothing different is done there.
> >
> > Can any one help me getting this preference work because its acting as
> a
> > hurdle in my development.
> >
> >
> >
> > Can any one give me sample gadget that runs on shindig  as shows user
> > preference dialog.
> >
> >
> >
> > Regards,
> >
> > Sanjay Shende
> >
> > Symphony Services
> >
> > Pune - 411045
> >
> > Office # +91-20-30566268
> >
> > Mobile # +91-9850908221
> >
> >
> >
> >
> >
> > "This email and any files transmitted with it contain confidential,
> > proprietary,
> > privileged information of Symphony Services Corp (India) Pvt. Ltd. and
> are
> > intended
> > solely for the use of the recipient/s to whom it is addressed. Any
> > unauthorized
> > notifying, copying or distributing of this e-mail, directly or
> indirectly,
> > and the
> > contents therein in full or part is prohibited by any entity who is
> not a
> > recipient.
> > Any email received inadvertently or by mistake should be deleted by
> the
> > entity who
> > is not a recipient thereof. You may be pleased to notify the sender
> > immediately by
> > email and the email should be deleted from your system".
> >
> "This email and any files transmitted with it contain confidential,
> proprietary,
> privileged information of Symphony Services Corp (India) Pvt. Ltd. and are
> intended
> solely for the use of the recipient/s to whom it is addressed. Any
> unauthorized
> notifying, copying or distributing of this e-mail, directly or indirectly,
> and the
> contents therein in full or part is prohibited by any entity who is not a
> recipient.
> Any email received inadvertently or by mistake should be deleted by the
> entity who
> is not a recipient thereof. You may be pleased to notify the sender
> immediately by
> email and the email should be deleted from your system".
>
>


-- 
~Kevin

Reply via email to