Welcome Guest, Not a member yet? Register   Sign In
Javascript array to codeigniter controller
#4

[eluser]Nick Husher[/eluser]
I think you're overthinking the problem: why not have a list of names with checkboxes next to them? Have a listener count the number of checkboxes that are checked, when the count reaches 10, disable all the unchecked boxes and display a message explaining why they're disabled. Then you can pass the checkbox values in through a simple HTML form.

Here's an example from a project that was never greenlit from eight months or so ago: Candidate Tracker. There's an element that tracks the number of checkboxes checked (maximum 4) and grays out everything after the fourth is selected. Then it's possible to submit that data through POST and parse as you will.


Messages In This Thread
Javascript array to codeigniter controller - by El Forum - 10-16-2008, 07:15 AM
Javascript array to codeigniter controller - by El Forum - 10-16-2008, 08:31 AM
Javascript array to codeigniter controller - by El Forum - 10-16-2008, 08:52 AM
Javascript array to codeigniter controller - by El Forum - 10-16-2008, 06:35 PM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 01:52 AM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 01:59 AM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 02:06 AM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 02:11 AM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 06:41 AM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 06:42 AM
Javascript array to codeigniter controller - by El Forum - 10-17-2008, 07:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB