what is 'a static link to a meta data base'? If it's a static link to an HTML file containing metadata information then it's not to a 'data base'. If it's a link to a data base containing meta info then it cannot be static but has to query the database (e.g. via PHP functions) and output the content ingesting it in HTML.
The first case is straightforward like function showGroupInfo(group) { var winurl = 'metadata.html#' + group; window.open(winurl, "resultwin"); } with the values of 'group' being the anchor point defined in the HTML. armin -------- Original-Nachricht -------- Datum: Wed, 13 Jun 2007 13:23:50 +0200 Von: Christian Braun <[EMAIL PROTECTED]> An: Alessandro Pasotti <[EMAIL PROTECTED]> CC: pmapper-users@lists.sourceforge.net Betreff: Re: [pmapper-users] Links to external adresses at custom.js > 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 > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail ------------------------------------------------------------------------- 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 pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users