baxy77bax has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

This time I need an example since I have never done anything like this before (visual interactive (using mouse) application). Let say I have a web page that displays a line like this:

A------------B------------C--------------D-------------E
what I would like to do is to click on C and drag it between A and B to get :
A-----C------B---------------------------D-------------E
or
A------------C------------B--------------D-------------E
spacing is irrelevant. in fact it is better if everything is equally spaced.

once modified i need a textual output specifying the change. Let say initially for generating my first line textual input looked like this:

[A,B,C,D,E]
after modifying it I would like to have it like this
[A,C,B,D,E]
I don't know what is possible or not since as i said visual applications were no go for me until now.

where do i start ??

all help appreciated.

thnx

baxy

Replies are listed 'Best First'.
Re: drag and drop web app
by marto (Cardinal) on Jan 08, 2014 at 13:22 UTC

    With the requirements you've posted I'd say this is something you'd do in HTML(perhaps 5 see drag) or JavaScript. Solve the problem there then have Perl generate the required code/server side processing.

Re: drag and drop web app
by bangor (Monk) on Jan 08, 2014 at 19:26 UTC
    Take a look at jQuery javascript library, in particular, the draggable interaction combined with a few other simple methods should get you going.