[pmapper-users] Hyperlink pdf
Brought to you by:
arminburger
From: Alexandre O. <ale...@gm...> - 2016-04-21 15:06:15
|
Hi, I´m trying to hyperlink several pdf in pmapper. My code is: *MAPFILE* METADATA "ows_title" "Anfibios_2014_2015_dcnfn" "RESULT_HYPERLINK" "link" "RESULT_FIELDS" "gid, especie, fonte, link" "LAYER_ENCODING" "UTF-8" END #METADATA *CUSTOM.JS* $.extend(PM.Custom, { openHyperlink: function(layer, fldName, fldValue) { switch(layer) { case 'Anfibios_2014_2015_dcnfn': window.open('http:/'+ '/brg_aoliveira/partilha/'+ fldValue); } break; default: alert ('See function openHyperlink in custom.js: ' + layer + ' - ' + fldName + ' - ' + fldValue); } }, It returns: Not Found The requested URL /partilha/Tese_Mestrado_Acouto.pdf was not found on this server. But the file is in that directory But the file is in that directory - i´ve tried, in the browser, to put *file://http://brg_aoliveira/partilha/Tese_Mestrado_Acouto.pdf <http://brg_aoliveira/partilha/Tese_Mestrado_Acouto.pdf>* and it opens. Can anyone help? Thanks Alex |