Re: [pmapper-users] Hyperlink pdf
Brought to you by:
arminburger
From: jose m. <jos...@gm...> - 2016-04-22 08:38:59
|
in my case it should work like this: openHyperlink: function(layer, fldName, fldValue) { switch(layer) { case 'Anfibios_2014_2015_dcnfn': if (fldName == 'link') { var linkUrl = 'http:/' + '/xxx.xxx.xxx.xxx/partilha/' + fldValue + '.pdf'; ; //window.open(linkUrl, 'wikiquery'); this.openHyperlinkDialog(linkUrl); } break; ... // Sample how to open a link in a p.mapper dialog box hyperlinkDlgOptions: {width:600, height:600, resizeable:true, newsize:false, container:'pmDlgContainerHyperlink'}, openHyperlinkDialog: function(linkUrl) { var dlg = PM.Dlg.createDnRDlg(this.hyperlinkDlgOptions, _p('Hyperlink'), false); var h = '<iframe width="99%" height="98%" src="' + linkUrl + '" />'; $('#pmDlgContainerHyperlink_MSG').html(h); }, /*showCategoryInfo: function(catId) { var catName = catId.replace(/licat_/, ''); alert('Info about category: ' + catName); }, showGroupInfo: function(groupId) { var groupName = groupId.replace(/ligrp_/, ''); alert('Info about layer/group: ' + groupName); } */ }); -- View this message in context: http://pmapper-users-p-mapper-users-mailing-list.993774.n3.nabble.com/pmapper-users-Hyperlink-pdf-tp4025871p4025873.html Sent from the pmapper-users -- p.mapper users mailing list mailing list archive at Nabble.com. |