Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Drag-and-drop ranking system...

Status
Not open for further replies.

frosty7700

Programmer
Aug 10, 2001
95
US
I'm trying to created a system that allows a web user receive a list of items, drag-and-drop them into a new order, then submit them back to the server (via ASP). I know a drag-and-drop system can be implemented via JavaScript...but I only know how to do it in IE. Plus, I don't know how to go about passing the ASP this new data-order (the physical HTML form locations are unchanged code-wise so I don't see how I can use that).

So, I need to know 2 things:
-How can I pull this off in such a way that the data can be submitted back to a server-side ASP for re-ordering in the DB
-Less importantly, but if possible, how can I do this in such a way that is compatible with browsers other than IE?

I know it can be done. An example is at
 
the example you give uses a Java applet - it isnt done in ASP or Javascript Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
OK. Now, could it be done with ASP and Javascript?

I'd prefer not to touch Java with a 10-foot pole.
 
To be honest, I think it's going to be horrendously difficult, if actually possible, to do this using javascript.

You might find more help in the javascript forum - forum216. Good luck! --James
 
Well i don't know if Netscape (or what versions) support drag and drop, but generally you cannot count on browser compatibility EVER!

>> (the physical HTML form locations are unchanged code-
>> wise so I don't see how I can use that).

What the heck does that mean?

>> how to go about passing the ASP this new data-order

That should be simple if you can already do the drag and drop as you say (in IE).

-pete
 
>>Well i don't know if Netscape (or what versions) support drag and drop, but generally you cannot count on browser compatibility EVER!<<

It's in an internal, controlled environment. So the end-users will use whatever they're given.

>>
>> how to go about passing the ASP this new data-order
That should be simple if you can already do the drag and drop as you say (in IE).<<

You'd think. :)
It's weird stuff.
 
Well, theres always MS DDRK :) Drag and drop built in, it's not my choice for intranet development, but it already handles what your looking to do with the added bonus of being able to setup user accounts so they have a sort of limited control how the interface looks when they log in.

-Tarwn ________________________________________________
Get better results for your questions: faq333-2924
Frequently Asked ASP Questions: faq333-3048
 
Frosty,

>> (the physical HTML form locations are unchanged code-
>> wise so I don't see how I can use that).

What the heck does that mean?

you missed that question, i don't understand the statement.

-pete
 
>>What the heck does that mean?

you missed that question, i don't understand the statement.<<

It was poorly worded, to say the least. I couldn't figure a way to make my JavaScript code modify the values contained in the form elements of the rows I'm dragging. The means of pulling off the drag-and-drop don't seem to cater to this possibility. Irrelevant now, regardless. I'm pretty sure I'm gonna dump JavaScript as a means of doing this now anyways. Seems a bit like using toothpicks and paste to build a car.
 
>> Seems a bit like using toothpicks and paste to build a
>> car.

LOL

[cannon] (javascript solution)

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top