Hi zoltan, thank´s a lot!
The problem was of course the false layername. The right name is "kww". Now it works fine :-). Best regards Bernhard -------- Original-Nachricht -------- > Datum: Tue, 20 Apr 2010 08:35:09 +0200 (CEST) > Von: Siki Zoltan <s...@agt.bme.hu> > An: Bernhard Hilz <se...@gmx.de> > CC: pmapper-users@lists.sourceforge.net > Betreff: Re: [pmapper-users] Problém with external Hyperlink > Hi bernhard, > > It mean, that xour switch statement catches the default option. > Here is an example for the openHyperlink function: > > // Sample Hyperlink function for result window > openHyperlink: function(layer, fldName, fldValue) { > // add this alert for debugging, to see parameters > //================================================= > alert(layer + ' : ' + fldName + ' : ' + fldValue); > //================================================= > // substitute the name of your layer, of your field and of your link! > switch(layer) { > case 'YOUR_LAYER': > if (fldName == 'YOUR_FIELD') { > window.open(YOUR_LINK_USING_fldValue, 'query'); > } > break; > case 'YOUR_OTHER_LAYER': > if (fldName == 'YOUR_OTHER_FIELD') { > window.open(YOUR_OTHER_LINK, 'query1'); > } > break; > default: > // this message is generated for you, it means, non of the case labels > // matches the text after the "case", neither Einsaetze_2009, nor > // Kreiswasserwachten, from the message you sent, I think the name of your > // layer is 'kww', you must use the name of the layer from the map file > // not the name of the shape file > alert ('See function openHyperlink in custom.js: ' + > layer > + ' - ' + fldName + ' - ' + fldValue); > } > }, > > regards, > Zoltan > > On Mon, 19 Apr 2010, Bernhard Hilz wrote: > > > Hi, Zoltan, > > > > i get an error message : "See function openHyperlink in custom.js: kww - > LINK - www.kreiswasserwacht-rosenheim.de" > > > > that´s all. > > > > Bernhard > > > > -------- Original-Nachricht -------- > >> Datum: Mon, 19 Apr 2010 13:23:27 +0200 (CEST) > >> Von: Siki Zoltan <s...@agt.bme.hu> > >> An: Bernhard Hilz <se...@gmx.de> > >> CC: pmapper-users@lists.sourceforge.net > >> Betreff: Re: [pmapper-users] Problém with external Hyperlink > > > >> Hi Bernhard, > >> > >> did you check error console for javascript errors? > >> If you use FireFox you can find it in the tools menu. > >> Does the new window open? What can you see in the URL? > >> > >> Best regards, > >> Zoltan > >> > >> On Mon, 19 Apr 2010, Bernhard Hilz wrote: > >> > >>> Hi everyone, > >>> > >>> i´m using Pmapper 4, and all works fine. I made a new layer and a > field > >> include an external link to a webpage. I´m not able to open this link > in > >> a new window using the function window.open in custom.js. All internal > >> links work fine. > >>> What´s wrong? > >>> > >>> case 'Einsaetze_2009': > >>> //if (fldName == 'Einsatzpro') { > >>> window.open('http:/..../Einsatzprotokolle/' + > >> fldValue + '.pdf'); > >>> //} > >>> break; > >>> case 'Kreiswasserwachten': > >>> //if (fldName == 'LINK') { > >>> window.open('http://' + fldValue); > >>> //} > >>> break; > >>> > >>> Thanks, > >>> > >>> Bernhard > >>> -- > >>> GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! > >>> Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 > >>> > >>> > >> > ------------------------------------------------------------------------------ > >>> Download Intel® Parallel Studio Eval > >>> Try the new software tools for yourself. Speed compiling, find bugs > >>> proactively, and fine-tune applications for parallel performance. > >>> See why Intel Parallel Studio got high marks during beta. > >>> http://p.sf.net/sfu/intel-sw-dev > >>> _______________________________________________ > >>> pmapper-users mailing list > >>> pmapper-users@lists.sourceforge.net > >>> https://lists.sourceforge.net/lists/listinfo/pmapper-users > >>> > > > > -- > > GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! > > Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 > > -- GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users