Forum Moderators: phranque

Message Too Old, No Replies

Drag n Drop in a web browser

         

aspdaddy

11:30 am on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Im looking to build an app with fast/ drag and drop functionality, and the ability to load/save state to a database - possibly not on the same server.

What are the technologies available for doing this via a browser
- Java applet
- ActiveX

Any alternatives, .NET?
Anyone know any good drag n drop examples online.

Thanks.

txbakers

1:25 pm on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've seen this done with belive it or not good old JavaScript.

I started on writing that functionality into an app but never finished. Here is what I have:

www.charmsmusic.com/dragdrop.asp

Scroll to the bottom and you can drag the colored boxes onto the grid. I never finished the next stage, deciding it was too complicated for what I needed.

It's a nice feature when I've seen it implemented. I'll try to find it again.

TheWhippinpost

1:32 pm on Feb 26, 2004 (gmt 0)

10+ Year Member



Aye, DHTML will do it - Look at the M$ site for tutorials on it.

phpologist

4:25 pm on Feb 26, 2004 (gmt 0)

10+ Year Member



have you considered flash? I researched this for my site a few months ago, but didn't end up implementing anything because it was called off.

I found there were too many cross browser compatibility issues when using DHTML (but if you do end up rolling your own using DHTML you could do a lot worse than starting here : [walterzorn.com...]

I tend to avoid M$ as much as possible, so ActiveX wasn't considered.

either a java or flash applet would make a good choice. I'd lean towards flash because it seems to have a wider distribution than Java VM's (of course , it depends on who you ask but looking at various different sets of stats, that's the conclusion I came to) and also, flash is great for interactive multi-media, and web page drag 'n' drop definitly falls under that category.

HelenDev

4:34 pm on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



txbakers, that javascript is pretty cool.

Is it also possible to make the mouse draw like a pen using something similar?

I know you can do this in flash, but I am quite interested to know if you can also do it in javascript.

Helen.

bcolflesh

4:35 pm on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A .NET example:

msdn.microsoft.com/msdnmag/issues/04/01/CuttingEdge/default.aspx

john_k

6:21 pm on Feb 26, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is it also possible to make the mouse draw like a pen using something similar?

Ask Google about VML. It stands for vector markup language.

Zaphod Beeblebrox

10:42 am on Feb 27, 2004 (gmt 0)

10+ Year Member



Unfortunately VML only renders properly on IE browsers.