Hi all I have the same problem in the file custom.js Do not open the link even though the syntax is correct
my code is: $.extend(PM.Custom, 7 { 8 // Sample Hyperlink function for result window 9 openHyperlink: function(layer, fldName, fldValue) { 10 switch(layer) { 11 case 'pais_siembra_pl': 12 if (fldName == 'NOMBRE') { 13 var linkUrl = 'http:/' + '/en.wikipedia.org/wiki/' + fldValue; 14 // window.open(linkUrl, 'wikiquery'); 15 this.openHyperlinkDialog(linkUrl); 16 //} 17 break; 18 19 default: 20 alert ('Vea la funcion en custom.js: ' + layer + ' - ' + fldName + ' - ' + fldValue); 21 } 22 }, Regards 2012/11/30 Serge Claudio Rafanoharana <rafanohar...@gmail.com> > Hi Armin and All, > > I would like to know whether it is possible or not to have different link > for the same field value. > > Example: I have a field NAME. I want to create a link for the result from > this field. The problem is that I have some cases where the values of NAME > are the same. However, I want to point them to different pages. > > NAME FIRSTNAME > Simon Cruze > Simon Blake > Marc Blake > > and I want the link to be on the field NAME. > > Thanks, > Serge > Re: How to open the hiperlinks in the same dialog box of pmapper?[image: > Click to flag this post] > > by Armin Burger <http://old.nabble.com/user/UserProfile.jtp?user=43088> > Nov > 21, 2011; 12:13am :: Rate this Message: > < > http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# > > > < > http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# > >< > http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# > >< > http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# > >< > http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# > >< > http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# > > > < > http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# > > > - > Use ratings to moderate (? <http://old.nabble.com/help/Answer.jtp?id=16>) > > Reply <http://old.nabble.com/forum/Reply.jtp?post=32869429> | > Print<http://old.nabble.com/forum/PrintPost.jtp?post=32869429>| View > Threaded | Show Only this > Message< > http://old.nabble.com/Re%3A-How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--p32869429.html > > > Salo > > replace the custom.js with the one from here > > > http://svn.pmapper.net/trac/export/1234/trunk/pmapper/config/default/custom.js > > and then swap the comments for lines 14/15. If you need some more > specific you need to modify the code accordingly. > > armin > > On 20/11/2011 17:44, salo wrote: > > > > > Thanks Serge, > > > > But really, I want is to show the following funtion (custom.js) as a > > pmapper's dialog box, please help me! > > > > > > // Sample Hyperlink function for result window > > openHyperlink: function(layer, fldName, fldValue) { > > switch(layer) { > > case 'mpios': > > //if (fldName == 'CITY_NAME') { > > window.open('http:/' + '/en.wikipedia.org/wiki/' + > > fldValue, 'wikiquery'); > > //} > > break; > > > > default: > > alert ('See function openHyperlink in custom.js: ' + > layer + > > ' - ' + fldName + ' - ' + fldValue); > > } > > }, > > > > --- > > > > Salo > > > > Sypou wrote: > >> > >> Hi Salo, > >> > >> To do that, you need to check and know how pmapper deals with the dialog > >> box. > >> > >> You can give it a try by adding the same functions and scripts let's say > >> similar to help. > >> > >> - pm.pmapper.js in javascript/src -> add dialog (line 242) > >> and > >> open dialog (line 360) > >> - js_config in config/default -> Tool link elements (line > >> 196) > >> - language_en in incphp/locale -> depending on the language you > use > >> - yourfile.phtml under your main site folder -> you can refer to the > >> help.phtml > >> > >> Hope it can help. > >> > >> Serge > >> > >> > >> > >> On Fri, Nov 18, 2011 at 5:45 PM, salo<e_ramirez_f@...> wrote: > >> > >>> > >>> Hello everyone, > >>> > >>> I want to open a hiperlink in same dialog box that pmapper use to open > >>> search, help, etc. > >>> > >>> Please help me! > >>> > >>> Thanks! > >>> > >>> Salo. > >>> > >>> > >>> -- > >>> View this message in context: > >>> > > http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--tp32865640p32865640.html > >>> Sent from the pmapper users mailing list archive at Nabble.com. > >>> > >>> > >>> > >>> > > ------------------------------------------------------------------------------ > > >>> All the data continuously generated in your IT infrastructure > >>> contains a definitive record of customers, application performance, > >>> security threats, fraudulent activity, and more. Splunk takes this > >>> data and makes sense of it. IT sense. And common sense. > >>> http://p.sf.net/sfu/splunk-novd2d > >>> _______________________________________________ > >>> pmapper-users mailing list > >>> pmapper-users@... > >>> https://lists.sourceforge.net/lists/listinfo/pmapper-users > >>> > >> > >> > >> > >> -- > >> Serge > >> > > ------------------------------------------------------------------------------ > > >> All the data continuously generated in your IT infrastructure > >> contains a definitive record of customers, application performance, > >> security threats, fraudulent activity, and more. Splunk takes this > >> data and makes sense of it. IT sense. And common sense. > >> http://p.sf.net/sfu/splunk-novd2d > >> _______________________________________________ > >> pmapper-users mailing list > >> pmapper-users@... > >> https://lists.sourceforge.net/lists/listinfo/pmapper-users > >> > >> > > > ... [show rest of > quote< > http://old.nabble.com/How-to-open-the-hiperlinks-in-the-same-dialog-box-of-pmapper--td32865640.html# > > > ] > > > -- > Serge > > ------------------------------------------------------------------------------ > Keep yourself connected to Go Parallel: > TUNE You got it built. Now make it sing. Tune shows you how. > http://goparallel.sourceforge.net > _______________________________________________ > pmapper-users mailing list > pmapper-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pmapper-users > -- Eduardo ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: TUNE You got it built. Now make it sing. Tune shows you how. http://goparallel.sourceforge.net _______________________________________________ pmapper-users mailing list pmapper-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pmapper-users