hey, list
  My question is, if to make HyperLink to a field of the data base (file
shape) it is necessary to setting archivo (custom.j), so that the file (
custom.j) that you send in him forum is different from which it comes
including in the application P.MAPPER 1.0.8
So that I realize the configuration in my Mapfile(.map RESULT_HYPERLINK) but
at the time of making click the table of data does not connect with website
( HYPERLINK) that I want to connect , and it appears to me a message of
error.
I must say that my knowledge in informatics is very low
 Thanx
stirner
------------ pr?xima parte ------------
Se ha borrado un adjunto en formato HTML...
URL: 
http://www.faunalia.com/pipermail/pmapper-users/attachments/20051006/7d5812f0/attachment.htm
From [EMAIL PROTECTED]  Thu Oct  6 21:54:08 2005
From: [EMAIL PROTECTED] (Armin Burger)
Date: Thu Oct  6 21:54:39 2005
Subject: [Pmapper-users] question
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>

Victor,

the file custom.js is just an example how to do it. It is inteded to be 
customized according to your settings, therefore its name. So you need 
some basic knowledge of Javascript how to deal with the data that is 
passed. So as an example the value in your shapefile field is part of a 
URL that you want to open, eg. the first part of an HTML file and you 
can use Javsscript to create the URL and open it in a new browser 
window, like

function openHyperlink(layer, fldName, fldValue) {
   switch(layer) {
     case 'cities':
        var layerurl = 'http://www.yoursite.org/' + fldValue + '.html';
        var mywin = window.open(layerurl, 'win', 
'width=500,height=700,resizable=yes,scrollbars=yes');
     break;
     }
}

So if the layer is 'cities' it opens the page
http://www.yoursite.org/xyz.html
with xyz beeing the entries in the field where you set the HYPERLINK tag 
in the map file for the layer cities.

It can also be a PHP page that takes the values from the URL passed, 
there are a bunch of possibilities.

Hope this helps

Armin

Victor Contreras wrote:
>  
> hey, list
>  
> My question is, if to make HyperLink to a field of the data base (file 
> shape) it is necessary to setting archivo (custom.j), so that the file ( 
> custom.j) that you send in him forum is different from which it comes 
> including in the application P.MAPPER 1.0.8
> So that I realize the configuration in my Mapfile(.map RESULT_HYPERLINK) 
> but at the time of making click the table of data does not connect with 
> website  ( HYPERLINK) that I want to connect , and it appears to me a 
> message of error.
> I must say that my knowledge in informatics is very low
>  
> Thanx
> stirner
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Pmapper-users mailing list
> [EMAIL PROTECTED]
> http://faunalia.it/cgi-bin/mailman/listinfo/pmapper-users

Reply via email to