Drag and Drop Team Selection
Posted
by
davidjwest
on Game Development
See other posts from Game Development
or by davidjwest
Published on 2012-03-17T16:27:20Z
Indexed on
2012/06/15
21:25 UTC
Read the original article
Hit count: 156
game-design
|php
I have a Fantasy F1 Website, currently users select their teams using dropdown menus. It works OK but isn't as user friendly as I would like.
I would like to implement a drag and drop type of system, there's jQuery code out there that would go part of the way to allowing me to do this:
http://jqueryui.com/demos/draggable/
But I am not sure about how to integrate that into PHP and MySQL, my jQuery skills are limited!
I'd also need to stop them spending more than a certain amount of money, each driver has a value and the teams can only spend a certain amount of money.
There's also limits for example you can only pick a driver once, but you can have three different drivers.
Finally, how would you decide that the user had picked their team, I don't want a submit button as that kind of defeats the object of the exercise!
Thanks for any advice, I don't expect anyone to write the code for me but some pointers would be greatly appreciated.
© Game Development or respective owner