views:

108

answers:

1

I tried to write reasonably short title but i failed i guess..

Hi everybody here's what i'm trying to do: I want to implement a web text editor able to recognize when the user drag a image file over it's editing surface and it automa(gically) starts the upload and insert the image near the cursor position.

In other words i don't want the user to do the usual "insert->image->browse->ok".

Atm i am not very good at javascript ... i know JQuery but i have not a clear idea about how to implement this... i don't know if there's an event handler able to help me in this situation... if not then there should be i think or web apps would miss some kind of interactivity.

I've heard miracles about HTML5 could it help me?

I've seen such things in Google Wave but that surface doesn't seem to be a form field... google lab's black magic i guess....

Thank you in advance.

+1  A: 
Pekka
yes thank you the second link is exactly what i meant, hope that browsers won't mess too much with that
fatmatto
@fatmatto well, it simply won't work in many browsers, including (I think) all versions of IE :) HTML 5 is still in its very, very early days. I think the linked example, at the moment, works in Firefox > 3.6 only.
Pekka
do you know alternatives? even running with different technologies?
fatmatto
@fatmatto very hardly. There may be some proprietary ActiveX and Java controls that offer this but I've never seen a free one, the ActiveX technology limits your range of browsers terribly, and Java Applets are .. well, it's probably down to taste :) I may be wrong, but IMHO what HTML 5 is offering is the only thing worthwhile even looking at.
Pekka