struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zoran Avtarovski <>
Subject Re: Using Struts2 JQuery drag & drop
Date Sun, 01 Nov 2009 23:55:39 GMT
Hi Ignacio,

It not jQuery specific but more extracting the coordinates of the event
using javascript. Depending on what your doing you have six pairs to choose


Without knowing exactly what you¹re doing, I can only really give you
general advice, but you could take the coordinates from the event and pass
them via ajax and then use the response as required.

I¹m apologise if I¹m being presumptuous but I suspect that you¹d really
benefit from a good book on both javascript and jQuery.


> Hello,
> I am looking at last version of Struts2 JQuery plugin and looks graet.
> Unfortunately I am really new to JQuery. I've been doing things with
> discontinued Dogo plugin but have found that the drag & drop tags in JQuery
> plugin could really fit for a Rich Int. App I have in mind. Hope somebody
> here can help me with a simple scenario.
> I would need to drop a small image into a bigger image; as far as I've seen
> that's no problem. The problem is that example in the showcase just shows a
> simple javascript subscribing to the drop action. I would need to get the
> coords where the small image/div was dropped and execute a remote DIV (to a
> struts2 action) sending those coords as parameter so that the remote div
> shows the results some processing with that simple data.
> Anybody could point me on how to:
> A) Get the coords inside the big div where the small image was dropped.
> B) How to set those x & y coords as a remote div action parameters.
> Hope this is simple to achieve.
> Thanks for any directions,
> Ignacio

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message