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.
--
Alessandro Pasotti
itOpen - "Open Solutions for the Net Age"
w3: www.itopen.it
Linux User# 167502
-------------------------------------------------------------------------
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