<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2>Hi</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>I can only give you some examples of code which you can get
inspiration from.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>for an example of plugin that recover the clic on map, see <A
href="http://www.cartoweb.org/cwiki/HowToGetXYCoordinatesOnClick">http://www.cartoweb.org/cwiki/HowToGetXYCoordinatesOnClick</A></FONT></DIV>
<DIV><FONT size=2>this plugin return a simple message (...addMessage...) but you
can query a database instead, see the "locate" plugin for example of database
query. there are several other plugin also doing database queries.</FONT></DIV>
<DIV><FONT size=2>to display the image, I would say the easiest way would be to
make your plugin use ajax, so you can recover the image and open it easily via a
javascript popup.</FONT></DIV>
<DIV><FONT size=2>read the doc <A
href="http://www.cartoweb.org/doc/cw3.5/xhtml/user.ajax.html">http://www.cartoweb.org/doc/cw3.5/xhtml/user.ajax.html</A> and
you have examples in pretty much all plugins in Cartoweb.</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>regards</FONT></DIV>
<DIV><FONT size=2>Oliver</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=karolitab@gmail.com href="mailto:karolitab@gmail.com">Karol
Briones</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=cartoweb-users@lists.maptools.org
href="mailto:cartoweb-users@lists.maptools.org">cartoweb-users@lists.maptools.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, November 12, 2008 5:59
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Make a plugin
that show images from db</DIV>
<DIV><BR></DIV>Hello, I try to make a plugin that query the DB by sending the
points from the map and show the corresponding image of the point in a
diferent page, please someone that can helpme, I'm new user sorry for my
english.<BR clear=all><BR>Thanks and regards,<BR>Karol<BR>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing list<BR><A
href="mailto:Cartoweb-users@lists.maptools.org">Cartoweb-users@lists.maptools.org</A><BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>