raffle peter wrote: > ..For > accomplishing this i need to click more than once > in the final image. The browser should send the > request to the webserver after clicking some button, > not on the final image. > > Any detail explanation on the topic will be highly > appreciated.
This is a Javascript topic, not MapServer. The brief explanation is -- The reason the browser sends the request on clicking on an image is because that is what you are asking it to do. You are doing so by possibly embedding the image in a form, or by trapping the mouseclick and using Javascript to send back to the browser. In your case, what you want to do is to modify that behavior. On loading your map page, set up a Javascript array in which you collect all the mouseclicks. As the user clicks around on the map, the map coordinates are pushed into the Js array. Then, when the user is ready the see the results of all that happy clicking, have her click on a submit button, and send the Js array back to the server along with the rest of the request. Hope that is clear. When you implement that successfully, be sure to share it with the rest of the list... someone else will benefit from your effort. Good luck. -- Puneet Kishor
