Drag n Drop across frames

G

Guest

Hi,

I want to implement drag a drop kind of functionality across frames using
ASP.NET(VC#). The scenario is like,

1) I want to break the screen into 3 frames with the leftmost and the
rightmost frames take 25% space each and rest 50% is occupied by the middle
frame.

2)Now, what I would like is to load the data from some datatable into the
leftmost and rightmost frmaes, one record in each row, and the data should be
draggable from either frames to the middle frame.

3) In the middle frame the top row again is bound to some data for display
purpose.

Any help and suggestion are welcome.
 
J

Jason Kester

Ramesh Chawla said:
I want to implement drag a drop kind of functionality across frames using
ASP.NET(VC#). The scenario is like,

2)Now, what I would like is to load the data from some datatable into the
leftmost and rightmost frmaes, one record in each row, and the data should be
draggable from either frames to the middle frame.

Sure. This is doable, though neither ASP.NET nor C# will help you.
This is on the browser, so Javascript will be doing the work.

I've done exactly this before, so I'll give you a few pointers and one
healthy disclaimer: It's hard (as in, if you're not already good with
DHTML, you're in over your head.)

Basically, you have to make sure that all the frames are sourced on
the same server so they can see each other. Keep a reference to your
cargo on the top frame, so it's easy to see by the others. Have each
frame handle it's own mouse events and use those variables in the top
frame to hold any information that the other frames might need, such
as drag state and cargo.

The big fun is in keeping track of the MouseDown state. If the user
drags to someplace where you don't have an event handler running then
lets go of the button, you'll find yourself in perma-drag mode. For
this reason, I'd recommend using a mouseout event on the window that
cancels the drag.

Anyway, good luck!

Jason
http://www.expatsoftware.com/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,738
Latest member
JinaMacvit

Latest Threads

Top