Thanks for your answer,but I want to extend the two functions for the
category and layers with a static link to a meta data base. Nothing that
is to complex.

function showCategoryInfo(cat) {
        alert('Info about category: ' + cat);
}


function showGroupInfo(group) {
    alert('Info about group: ' + group);
}

cheers, Christian


On Wed, 2007-06-13 at 12:21 +0200, Alessandro Pasotti wrote:
> Il mercoledì 13 giugno 2007, Christian Braun ha scritto:
> > Hi List,
> >
> > I'm not quite familiar with java-script. So I wondered how to set the
> > code in custom.js to get the external links running for categories and
> > layers?
> > Could anyone of you provide me with an example?
> 
> One of the most flexible approach is to move this logic out of custom js and 
> into a redirector php file.
> 
> in custom.js
> 
> 
> function openHyperlink(layerName, fldName, fldValue) {
>     window.open('/redirector.php?layer_name=' +  layerName + '&field_name=' + 
> fldName + '&field_value=' + fldValue, 'query_results');
> }
> 
> 
> Then write a simple redirector.php that redirect to the pages you want, or 
> creates them on the fly based on the parameters passed on GET.
> 
> 
> Cheers.
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to