dBox: box drag not stopping

Bart van den Eijnden BEN at SYNCERA-ITSOLUTIONS.NL
Thu Apr 7 12:11:37 EDT 2005


Okay found it already, I was using an <input type="image"> instead of an <img> which is apparently required.

I've got some rewriting to do of the application .... :)

Best regards,
Bart

Bart van den Eijnden
Syncera-ITSolutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl

>>> Bart van den Eijnden <BEN at SYNCERA-ITSOLUTIONS.NL> 04/07/05 05:07pm >>>
Hi list,

I am trying to implement dBox in a website, but I am having a problem: the box won't stop dragging. Does this sound familiar to anybody? What am I doing wrong?

I added the following javascript (also the necessary includes ofcourse):

var main = new dBox("img");

function setbox_handler(name, minx, miny, maxx, maxy) {
   document.MapForm.imgbox.value = minx + " " + miny + " " + maxx + " " + maxy;
   document.MapForm.imgxy.value = minx + " " + miny;
   document.MapForm.submit();
}

function seterror_handler(message) {
   alert(message);
}

function reset_handler(name, minx, miny, maxx, maxy) { }

function startup() {
   // Step 4: Initialize the dBox object
   main.initialize();
   }

And the following inputs:

<input type="hidden" name="imgbox" value="-1 -1 -1 -1">
<input type="hidden" name="imgxy" value="299.5 299.5">

I call main.boxon() and main.boxoff() at the respective map buttons.

Thanks in advance.

Best regards,
Bart

Bart van den Eijnden
Syncera-ITSolutions
Postbus 270
2600 AG  DELFT

tel.nr.: 015-7512436
email: BEN at Syncera-ITSolutions.nl



More information about the mapserver-users mailing list