Welcome Guest, Not a member yet? Register   Sign In
Work differentiation between CodeIgniter / jQuery - best practice
#2

[eluser]Mark Croxton[/eluser]
Yuk, don't output a js array from php. Just get CI to output the semantically correct markup with the items selected. If you can't so this because your 'selected' items are list items instead of, say, checkboxes, then you're not doing it right Smile Progressive enhancement: start with markup that actually works without JS. A nested lists of checkboxes for example inside a form that POSTs data to a CI controller. Then use jquery to add the bells and whistles.


Messages In This Thread
Work differentiation between CodeIgniter / jQuery - best practice - by El Forum - 08-02-2010, 10:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB