Thank you very much for the information. This helps me a lot!
On the list archive I found the following two functions:
function openHyperlink(layer, fldName, fldValue) {
switch(layer) {
case 'suoli':
window.open('../../html/ipertesto/fasi/' + fldValue + '.htm');
break;
default:
alert ('Nessuna informazione disponibile per ' + layer + ' - ' +
fldName + ' - ' + fldValue);
break;
}
}
function openHyperlink(layerName, fldName, fldValue) {
window.open('/redirector.php?layer_name=' + layerName + '&field_name='
+
fldName + '&field_value=' + fldValue, 'query_results');
}
I think that with that I can manage to implement what I need, even if my
knowledge of js is quite around zero.
Just a question about the second function: instead of redirector.php is it
possible to use any php script?
I will also look at jQuery plugins.
Thanks a lot
Laura
On 9/11/07, Alessandro Pasotti <[EMAIL PROTECTED]> wrote:
>
> Il martedì 11 settembre 2007, Laura Poggio ha scritto:
> > Dear list,
> > I finally solved the "basic" problems and set up a working application
> > thanks to p.mapper. It is really great that such a nice tool is
> available!.
> > Now I have an other problem. I have a point layer (soil sites). I would
> > like to "link" to each point an image showing the site itself.
> > The ideal situation would be to have a thumbnail of the image as pop-up
> and
> > when clicking on a link in the pop-up to have the full image. The format
> of
> > the image does not mind, can be any graphical format or even pdf.
> > I didn't find any information about how to do that. I have some code in
> PHP
> > on how to link thumbnails and images (files), but I do not know how to
> link
> > to p.mapper. The only possibility it came to my mind is to put the
> images
> > in a database and to join the field to the point layer. Is that a real
> > possibility to explore?
>
> Hi,
>
> We've done something similar before, we decided to store images on the
> filesystem and save the image path (relative to the base storage folder)
> in
> the database.
>
> You can retrieve this path as a normal attribute and create an hyperlink
> in
> p.mapper query results window without (almost) touching p.mapper code.
>
> If you need something more fancy, you could create a custom tool, a js
> function to handle the tool and a small ajax responder that return the
> image
> URL.
>
> There is a getxy example of such a function in the mailing list archives
> (about one or year ago, I think).
>
> Since p.mapper use jQuery, you can also find a lot of nice plugins
> (lightbox
> effect for example) for image display.
>
> Hope it helps.
>
> Ciao
> --
> Alessandro Pasotti
> itOpen - "Open Solutions for the Net Age"
> w3: www.itopen.it
> Linux User# 167502
>
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users