[Chameleon] apply legend causes additional widget action
josh at livniconsulting.com
Mon Sep 12 22:00:09 EDT 2005
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:
> 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.
> 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,
>> 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
>> Any ideas or workarounds would be helpful,
>> Chameleon mailing list
>> Chameleon at lists.maptools.org
More information about the Chameleon