[wdvltalk] RE: drag and drop?

2003-01-09 Thread Macdonald-Wallace, Matthew J
Jon,

How do you generate the image at tme moment? is it a database? If so, how
about using an UPDATE statement and having an edit button next to each
one.  I know its not strictly drag and drop, but at least you won't have to
cancel it...

IFAIK, you would have to embed an ActiveX control (if they're still around?
my knowledge of M$ products is hazy these days...) or a Java app to do Drag
n drop sucessfully...

HTH,

Matt

-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: 09 January 2003 10:59
To: [EMAIL PROTECTED]
Subject: [wdvltalk] drag and drop?


Hi list,

We've got a table that shows bookings for our various rooms:
http://laughing-buddha.net/tmp/wj-bookings.gif

At the moment, if you want to move a booking, you have to cancel it and
re-book it. It'd be *really* nice if there were some way for 
users to drag
their booking to where they wanted it.

Any ideas? Any way of doing this easily? It can be IE6 only, 
if that makes
any difference.

Cheers
Jon



Witan Jardine
13 Southampton Place
London WC1A 2AL
Tel: 020 7404 4004

Please visit us on the Internet:
http://www.witanjardine.co.uk/

'The information included in this e-mail is of a confidential 
nature and is
intended only for the addressee.  If you are not the intended 
addressee, any
disclosure, copying or distribution by you is prohibited and may be
unlawful.  Disclosure to any party other than the addressee, whether
inadvertent or otherwise is not intended to waive privilege of
confidentiality. If you have received this email in error, 
please forward it
to [EMAIL PROTECTED], thank you.'
 

 * The WDVL Discussion List from WDVL.COM * 
To Join wdvltalk, Send An Email To: 
mailto:[EMAIL PROTECTED] 
   Send Your Posts 
To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
To unsubscribe send a blank email to 
%%email.unsub%%


 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]



[wdvltalk] RE: drag and drop?

2003-01-09 Thread Adam Blair
I can't recall where this code came from, but this allows any HTML element
that is given the Class=Drag to be dragged around the page:

HTH, Adam

html
head
style
.drag {position:relative;cursor:hand }
/style
script language=JavaScript1.2
var dragapproved=false
var z,x,y
function move(){
if (event.button==1dragapproved){
z.style.pixelLeft=temp1+event.clientX-x
z.style.pixelTop=temp2+event.clientY-y
return false
}
}
function drags(){
if (!document.all)
return
if (event.srcElement.className==drag){
dragapproved=true
z=event.srcElement
temp1=z.style.pixelLeft
temp2=z.style.pixelTop
x=event.clientX
y=event.clientY
document.onmousemove=move
}
}
document.onmousedown=drags
document.onmouseup=new Function(dragapproved=false)
//--
/script

/head
body
p class=drag/p
p class=drag/p
p class=drag/p
p class=drag/p
/body
/html

-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]] 
Sent: 09 January 2003 10:59
To: [EMAIL PROTECTED]
Subject: [wdvltalk] drag and drop?


Hi list,

We've got a table that shows bookings for our various rooms:
http://laughing-buddha.net/tmp/wj-bookings.gif

At the moment, if you want to move a booking, you have to cancel it and
re-book it. It'd be *really* nice if there were some way for users to drag
their booking to where they wanted it.

Any ideas? Any way of doing this easily? It can be IE6 only, if that makes
any difference.

Cheers
Jon



Witan Jardine
13 Southampton Place
London WC1A 2AL
Tel: 020 7404 4004

Please visit us on the Internet:
http://www.witanjardine.co.uk/

'The information included in this e-mail is of a confidential nature and is
intended only for the addressee.  If you are not the intended addressee, any
disclosure, copying or distribution by you is prohibited and may be
unlawful.  Disclosure to any party other than the addressee, whether
inadvertent or otherwise is not intended to waive privilege of
confidentiality. If you have received this email in error, please forward it
to [EMAIL PROTECTED], thank you.'
 

 * The WDVL Discussion List from WDVL.COM * 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: [EMAIL PROTECTED] To
unsubscribe send a blank email to %%email.unsub%%

 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]



[wdvltalk] RE: drag and drop?

2003-01-09 Thread Jon Haworth
Hi Matt,

 How do you generate the image at tme moment? does it come
 from a database?

It's a table, not an image (the link I posted is just a screenshot)... but
it does come from a database, yes.

 If so, how about using an UPDATE statement and having an 
 edit button next to each one.  

At the moment, clicking on a cell with a booking will cancel it - I'd love
to provide an edit link but I'm just not sure if there's physically the
room for it (there's other stuff on screen as well, that screenshot is
heavily cropped)

 I know its not strictly drag and drop, but at least you 
 won't have to cancel it...

Yeah, I might have to live with it as clicking on a booking leads to an
edit page where you can also cancel.

Perhaps a hunt around MSDN will turn something up... now all I need is some
free time in which to hunt :-)

Cheers
Jon

 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]



[wdvltalk] RE: drag and drop?

2003-01-09 Thread Jon Haworth
Hi Adam,

 this allows any HTML element that is given the Class=Drag
 to be dragged around the page:
[...]

This looks promising, thanks very much!

I'll give it a go and let you guys know what I can come up with - don't let
that stop you posting if you have any other solutions, though ;-)

Cheers
Jon

 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]



[wdvltalk] RE: drag and drop?

2003-01-09 Thread Jon Haworth
Hi Ben,

 I think it can be done.  

It's definitely an itch that feels *very* scratchable.

 I know the dragging bit can... but not 100% sure aboitu 
 tracking what element the mouse is over if you're already 
 dragging something.

All I need to track is the PK of the booking record that's moving, and
whether it can fit in when it's dropped... 

I'm worried it'll come down to having to track the pixel position of the
booking when it's dropped, and then all is lost as it'll be a different
place depending on resolution, window size etc. Maybe I can give each td a
separate id and work it out that way... hmm... scratches head

I hate client-side scripting ;-)

Cheers
Jon

 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]



[wdvltalk] RE: drag and drop?

2003-01-09 Thread ben
let me have a play and i'll get back to you.

Quoting Jon Haworth [EMAIL PROTECTED]:

 Hi Ben,
 
  I think it can be done.  
 
 It's definitely an itch that feels *very* scratchable.
 
  I know the dragging bit can... but not 100% sure aboitu 
  tracking what element the mouse is over if you're already 
  dragging something.
 
 All I need to track is the PK of the booking record that's moving, and
 whether it can fit in when it's dropped... 
 
 I'm worried it'll come down to having to track the pixel position of the
 booking when it's dropped, and then all is lost as it'll be a different
 place depending on resolution, window size etc. Maybe I can give each td a
 separate id and work it out that way... hmm... scratches head
 
 I hate client-side scripting ;-)
 
 Cheers
 Jon
 
  • The WDVL Discussion List from WDVL.COM • 
 To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
Send Your Posts To: [EMAIL PROTECTED]
 To change subscription settings to the wdvltalk digest version:
 http://wdvl.internet.com/WDVL/Forum/#sub
 
   http://www.wdvl.com  ___
 
 You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
 To unsubscribe send a blank email to %%email.unsub%%
 


-
This mail sent through IMP: http://horde.org/imp/

 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]



[wdvltalk] RE: drag and drop?

2003-01-09 Thread ben
You could make the whole thing a grid/table (if it isn't already) and use DD 
to move an image about, then pick up where it was last hovering when dropped.

I think it can be done.  I know the dragging bit can... but not 100% sure 
aboitu tracking what element the mouse is over if you're already dragging 
something.

hmm.. intersting.

 .b


Quoting Macdonald-Wallace, Matthew J [EMAIL PROTECTED]:

 Jon,
 
 How do you generate the image at tme moment? is it a database? If so, how
 about using an UPDATE statement and having an edit button next to each
 one.  I know its not strictly drag and drop, but at least you won't have to
 cancel it...
 
 IFAIK, you would have to embed an ActiveX control (if they're still around?
 my knowledge of M$ products is hazy these days...) or a Java app to do Drag
 n drop sucessfully...
 
 HTH,
 
 Matt
 
 -Original Message-
 From: Jon Haworth [mailto:[EMAIL PROTECTED]]
 Sent: 09 January 2003 10:59
 To: [EMAIL PROTECTED]
 Subject: [wdvltalk] drag and drop?
 
 
 Hi list,
 
 We've got a table that shows bookings for our various rooms:
 http://laughing-buddha.net/tmp/wj-bookings.gif
 
 At the moment, if you want to move a booking, you have to cancel it and
 re-book it. It'd be *really* nice if there were some way for 
 users to drag
 their booking to where they wanted it.
 
 Any ideas? Any way of doing this easily? It can be IE6 only, 
 if that makes
 any difference.
 
 Cheers
 Jon
 
 
 
 Witan Jardine
 13 Southampton Place
 London WC1A 2AL
 Tel: 020 7404 4004
 
 Please visit us on the Internet:
 http://www.witanjardine.co.uk/
 
 'The information included in this e-mail is of a confidential 
 nature and is
 intended only for the addressee.  If you are not the intended 
 addressee, any
 disclosure, copying or distribution by you is prohibited and may be
 unlawful.  Disclosure to any party other than the addressee, whether
 inadvertent or otherwise is not intended to waive privilege of
 confidentiality. If you have received this email in error, 
 please forward it
 to [EMAIL PROTECTED], thank you.'
  
 
  * The WDVL Discussion List from WDVL.COM * 
 To Join wdvltalk, Send An Email To: 
 mailto:[EMAIL PROTECTED] 
Send Your Posts 
 To: [EMAIL PROTECTED]
 To change subscription settings to the wdvltalk digest version:
 http://wdvl.internet.com/WDVL/Forum/#sub
 
   http://www.wdvl.com  ___
 
 You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
 To unsubscribe send a blank email to 
 %%email.unsub%%
 
 
  • The WDVL Discussion List from WDVL.COM • 
 To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
Send Your Posts To: [EMAIL PROTECTED]
 To change subscription settings to the wdvltalk digest version:
 http://wdvl.internet.com/WDVL/Forum/#sub
 
   http://www.wdvl.com  ___
 
 You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
 To unsubscribe send a blank email to %%email.unsub%%
 


-
This mail sent through IMP: http://horde.org/imp/

 • The WDVL Discussion List from WDVL.COM • 
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] 
   Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub

  http://www.wdvl.com  ___

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]