Welcome Guest, Not a member yet? Register   Sign In
Drag and Drop...trying to make it happen
#8

[eluser]Dyllon[/eluser]
[quote author="NateL" date="1259977246"]
Is it efficient to run that loop with an update query inside it so that it updates all of the rows? or is that the "expensive" you were referring to, Jedd?[/quote]

In short, no it is not an efficient method.

Your table drag & drop plugin will have a callback after you "drop" a table row, use that callback with ajax to run a method in your controller like the one I posted above or your own method.


Messages In This Thread
Drag and Drop...trying to make it happen - by El Forum - 12-03-2009, 04:05 PM
Drag and Drop...trying to make it happen - by El Forum - 12-03-2009, 04:20 PM
Drag and Drop...trying to make it happen - by El Forum - 12-03-2009, 04:23 PM
Drag and Drop...trying to make it happen - by El Forum - 12-03-2009, 04:49 PM
Drag and Drop...trying to make it happen - by El Forum - 12-04-2009, 01:08 AM
Drag and Drop...trying to make it happen - by El Forum - 12-04-2009, 12:17 PM
Drag and Drop...trying to make it happen - by El Forum - 12-04-2009, 01:40 PM
Drag and Drop...trying to make it happen - by El Forum - 12-04-2009, 08:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB