[Chameleon] apply legend causes additional widget action
abe.gillespie at gmail.com
Fri Sep 30 10:41:33 EDT 2005
Is this a bug? I see the new code in widgets like ZoomIn and ZoomOut
that runs despite nav coordinate input. This is causing issues with
many other widgets for one of my customers.
I develop with a slightly older version than 2.2. But my client has
2.2. I get things working perfectly on my development system, then
move it over to my client and have problems.
Is this a bug or by design? If by design, is having other widgets set
NAV_CMD the accepted method of fixing this?
On 9/12/05, Josh Livni <josh at livniconsulting.com> wrote:
> For the record, the following line in my popup.phtml worked perfectly:
> window.opener.document.forms.NAV_CMD.value = '';
> Paul, thanks for the response - your hints/help are greatly appreciated
> to this chameleon newbie.
> Paul Spencer wrote:
> > Josh,
> > the document.forms.NAV_CMD is in the main app rather than in the
> > popup, so you would need to do something from document.opener within the
> > popup to refer to the main app.
> > It might be document.opener.document.forms or document.opener.forms ...
> > you'll need to experiment.
> > Cheers
> > Paul
> > Josh Livni wrote:
> >> This is sort of a followup to a previous post about someone having
> >> trouble with an unwanted zoom when updating their legend.
> >> I am using v2.2 and a fairly default legend template. The
> >> LegendTemplate has embedded="false" such that I get the popup for the
> >> legend, and when I apply changes, or hit OK, in addition to updating
> >> the legend it runs the last widget (eg zoom).
> >> Paul Spencer noted, in this post,
> >> http://lists.maptools.org/pipermail/chameleon/2005-June/002452.html
> >> that this might be fixed in 2.2, or that one could try adding
> >> document.forms.NAV_CMD.value = '' before the submit. If I try add
> >> that to my LegendTemplatePopup.phtml (under, for example, the function
> >> document.forms.NAV_CMD.value
> >> Any ideas or workarounds would be helpful,
> >> Thx
> >> -Josh
> >> _______________________________________________
> >> Chameleon mailing list
> >> Chameleon at lists.maptools.org
> >> http://lists.maptools.org/mailman/listinfo/chameleon
> Chameleon mailing list
> Chameleon at lists.maptools.org
More information about the Chameleon