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
------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
pmapper-users mailing list
pmapper-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pmapper-users

Reply via email to