<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.6000.16544" 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>if your plugin call buildPostRequest then the content of the
form is sent. If what you receive is not what you expect, then something is
wrong before it is sent.</FONT></DIV>
<DIV><FONT size=2>you can see the content of the request in the JSTrace debugger
windows. also, if you are in development mode, add in your main template the
code to display developpers message (copy it from the demoCW3
cartoclient.tpl, it is the only one with the id attribute needed)</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>for the extent on server side, I dont think there is already a
function for that, as I dont see any accessor in the location coreplugin on
server side.</FONT></DIV>
<DIV><FONT size=2>but you can easily get it on client side and simply send it to
your plugin server part via the buildRequest() function.</FONT></DIV>
<DIV><FONT size=2>$bbox =
$plugins->getPlugin('location')->getLocation();</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=christophe@beve.org
href="mailto:christophe@beve.org">christophe@beve.org</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> Monday, October 22, 2007 12:12
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] Remove cookie
and get actual extent</DIV>
<DIV><BR></DIV>
<P>Hello list, </P>
<P>I'm writing a plugin to search into a database and display mixed icons on
the map. </P>
<P>I use ajax to send vars to the client side of the plugin, no problem with
that. But when i remove items with JS (hidden fields) and send new query the
old vars are send (cookie i think). </P>
<P>What can i do to cleanup that ? </P>
<P>Another question, how can i get the current extent in the server side ?
$this->getServerContext()->getMapObj()->extent give me the extent of
the mapfile, not the current extent. </P>
<P>You can view the plugin (it do nothing server side actually) here:
http://cartoweb.localix.org/ in the DBSearch tab. </P>
<P>It's in early stage of development but source code can be accessed
here: http://cwdbsearch.googlecode.com/svn/trunk/ . Some parts are ugly
and for testing purpose only, sql request are not in the config file and
directly in the code actually. It's my firt steps with cartoweb :) </P>
<P>Thanks, </P>
<P>Christophe </P>
<P>
<HR>
<P></P>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></BLOCKQUOTE></BODY></HTML>