<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Tahoma
}
</STYLE>
<META content="MSHTML 6.00.6000.16544" name=GENERATOR></HEAD>
<BODY class=hmmessage bgColor=#ffffff>
<DIV><FONT face=Arial>the map_xxxx is the id of the dhtml feature in javascript:
dShape.id</FONT></DIV>
<DIV><FONT face=Arial>see dhtmlAPI.js, line 1348 or so, thats where the confirm
message is generated.</FONT></DIV>
<DIV><FONT face=Arial>to get the layer, I suppose you can do something like
xGetElementById('edit_layer').value (though it seems you have to add an
id="edit_layer" in the template, there is only a name= tag at the
moment.)</FONT></DIV>
<DIV><FONT face=Arial>and as for the id, if you only want the numeric part,
simply use the javascript substr</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>regards</FONT></DIV>
<DIV><FONT face=Arial>Oliver</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=tekuganda@hotmail.com href="mailto:tekuganda@hotmail.com">Broun
Uganda</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=oliver.christen@camptocamp.com
href="mailto:oliver.christen@camptocamp.com">Oliver Christen</A> ; <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 14, 2007 3:29
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Cartoweb-users] multiple
Delete Button editplugin</DIV>
<DIV><BR></DIV>Hey<BR>When you attempt to delete, you get a popup window 'Are
you sure? map_xxxx', where xxx is the id of the feature to be deleted. I want
to change this message so it is more meaningful to my users. I want something
like ' Are you sure you want to delete 'layername_featurename ?' I have
changed the first part but i cant find where to change map_xxxx from!<BR>Thank
you for your help.<BR><BR>Broun Uganda<BR><BR><BR><BR>
<BLOCKQUOTE>
<HR id=EC_stopSpelling>
From: <A
href="mailto:oliver.christen@camptocamp.com">oliver.christen@camptocamp.com</A><BR>To:
<A href="mailto:tekuganda@hotmail.com">tekuganda@hotmail.com</A>;
cartoweb-users@lists.maptools.org<BR>Subject: Re: [Cartoweb-users] multiple
Delete Button editplugin<BR>Date: Wed, 14 Nov 2007 14:56:40 +0100<BR><BR>
<META content="Microsoft SafeHTML" name=Generator>
<STYLE>
.ExternalClass .EC_hmmessage P
{padding-right:0px;padding-left:0px;padding-bottom:0px;padding-top:0px;}
.ExternalClass EC_BODY.hmmessage
{font-size:10pt;font-family:Tahoma;}
</STYLE>
<DIV><FONT face=Arial>Hi</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>deleting a feature is a complex action
and emulating it would be fairly complex, even I wouldnt want to touch
that.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>if you really really want to do it, the functions
called on delete is DeleteFeatureTool.prototype.onMouseDown in
dhtmlAPI.js</FONT></DIV>
<DIV><FONT face=Arial>but I have no idea what you need to copy or modify so
you can call it with a clic on a button instead of a clic on the map,
sorry.</FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>regards</FONT></DIV>
<DIV><FONT face=Arial>Oliver</FONT></DIV>
<DIV> </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=tekuganda@hotmail.com href="mailto:tekuganda@hotmail.com">Broun
Uganda</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 14, 2007
1:20 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Cartoweb-users] multiple
Delete Button editplugin</DIV>
<DIV><BR></DIV><BR>In my edit plugin i want to include a tickboxes
(similar to radio buttons). The purpose of these tick boxes is that i
should do multiple selection of features and then delete them all at once.
What part of code do i need to change so that by clicking on these tick
boxes the edit rows are crossed out and then i have a button
(delete_all).<BR>Thank you<BR>Broun Uganda<BR><BR><BR><BR>
<HR>
Discover the new Windows Vista <A
href="http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE"
target=_blank>Learn more!</A>
<HR>
<P><BR>_______________________________________________<BR>Cartoweb-users
mailing
list<BR>Cartoweb-users@lists.maptools.org<BR>http://lists.maptools.org/mailman/listinfo/cartoweb-users<BR></P></BLOCKQUOTE></BLOCKQUOTE><BR>
<HR>
Connect to the next generation of MSN Messenger <A
href="http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline"
target=_new>Get it now! </A></BLOCKQUOTE></BODY></HTML>