[Chameleon] Problem with XMLThemeLegend

Paul Spencer pagameba at magma.ca
Fri Oct 1 07:37:55 EDT 2004


Dominic, answers in line

Langlois, Dominic wrote:
> Hi all,
> 
> This is my first post to this list so I hope that everything will be ok.
> Sorry for any problem that could occur.
> 
> I have problems using the XMLThemeLegend widget with a renderer file for
> displaying the legend while using 
> the [theme_url] and [group_url] attribute values in order to create some
> href links which popup a window who 
> let the user have a look to the metadata either for a theme or a group of
> layers. The problem is that none href link
> are working at all and that an 'invalid return call' javascript error are
> issued in the javascript console.

this was fixed in the cvs version on August 4th and will be in Beta 3 
(coming soon)

> 
> While digging into the XMLThemeLegend.widget.php and the web page source
> code, I noticed and modified 
> the following lines but I am not sure if I did it right based on your code
> standards. Moreover, correcting these lines
> do not fully solve the problem. Here are the modifications that I did in the
> XMLThemeLegend.widget.php file :
>  
> - [ lines 377 and 407 ] : the widget path is incomplete : 
>   Line code should be (once corrected the full XMLThemeLegend path) :
>   $this->moPopup->mszLink =
> $_SESSION['gszCoreWebPath']."/widgets/XMLThemeLegend/XMLThemeLegendInfo.phtm
> l";

fixed in cvs on August 4th as well.
>    
> - [ lines 401 and 446 ] : these 'return false;' lines causes invalid return
> problem in the 'ContextSelector_openGroupInfo' and 
>   'ContextSelector_openThemeInfo' functions when called from the web page.
> Commenting these lines partially solve a problem
>   about the non displaying popup window.
> 
> - [ line 761 and 780 ] : I also removed the 'return false;' part of these
> line code. Doing so have helped to get the popup with 
>   metadata information for the groups (  the 'ContextSelector_openGroupInfo'
> function ). But it seems that there is still an 
>   error in the 'ContextSelector_openThemeInfo' function as the function
> never use the themeName and themeAbstract arguments.
> 
> So now, I can get the popup window for a group but not for a theme.
> Moreover, the 'Close dialog' button of the popup window
> is not displayed as it should be. I have tried to fix it without any success
> and I can't figure out what is the problem.
> 
> Did someone succeeded to use this widget functionality and how ?  Are these
> bugs ? Any idea ? Is there something wrong
> that I am doing ? 
> 
> I am currently developping with Chameleon 1.99 Beta1. I will soon upgrade to
> Beta2 version but, from my insights into the code,
> these code lines are still in the new version and so, the problems.
> 
> Just in case, here is my legend renderer file :
> 
> [repeat theme]
>   <tr>
>     <td class="label_theme" width="10">[theme_input]</td>
>     <td class="label_theme" colspan="2"><a class="links"
> href="[theme_url]">[theme_name]</td>
>   </tr>
>   [repeat group]
>     [if group_theme_id = theme_id]
>       [if group_visible = "true"]
>         <tr>
>           <td width="10">&nbsp;</td>
>           <td class="label_group" width="10">[group_input]</td>
>           <td class="label_group"><a class="links"
> href="[group_url]">[group_name]</td>
>         </tr>
>       [end]
>     [end]
>   [end]
> [end]
> 
> Any help will be appreciated. Thanks !

I will check the rest of these with the cvs version and see if there are 
any lingering problems.

Cheers,

Paul
> 
>  
> 
> Dominic Langlois
> Natural Resources Canada
> Centre for Topographic Information
> Web Services Team
> 2144 King West Street, s. 010
> Sherbrooke, Quebec  J1J 2E8
> E-Mail:  langlois at NRCan.gc.ca
> Tel:  (819) 564-5600 #267
> Fax:  (819) 564-5698 
> 
> 
> 
> 
> 
>  
> 
> Dominic Langlois
> Natural Resources Canada
> Centre for Topographic Information
> Web Services Team
> 2144 King West Street, s. 010
> Sherbrooke, Quebec  J1J 2E8
> E-Mail:  langlois at NRCan.gc.ca
> Tel:  (819) 564-5600 #267
> Fax:  (819) 564-5698 
> 
> 
> _______________________________________________
> Chameleon mailing list
> Chameleon at lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/chameleon
> 

-- 
  -----------------------------------------------------------------
|Paul Spencer                           pspencer at dmsolutions.ca   |
|-----------------------------------------------------------------|
|Applications & Software Development                              |
|DM Solutions Group Inc                 http://www.dmsolutions.ca/|
  -----------------------------------------------------------------



More information about the Chameleon mailing list