pls help me with chain select with category and subcat in codeigniter |
[eluser]dhaulagiri[/eluser]
please help me how to create dropdown select menu in CI, where if i select category then sub categor will appear on the same page withour refreshing browser. Thanks
[eluser]duellsy[/eluser]
Give this a read over, see if it helps http://www.subooa.com.au/blog/developmen...th-jquery/
[eluser]alexaaaaaaaaaa[/eluser]
i've done that with prototype if you are interested i can share my code m+c+v +database
[eluser]masdevid[/eluser]
[quote author="duellsy" date="1298392051"]Give this a read over, see if it helps http://www.subooa.com.au/blog/developmen...th-jquery/[/quote] What about in codeigniter version? What if there are 3 level or more?
[eluser]alexaaaaaaaaaa[/eluser]
[quote author="masdevid" date="1298422685"][quote author="duellsy" date="1298392051"]Give this a read over, see if it helps http://www.subooa.com.au/blog/developmen...th-jquery/[/quote] What about in codeigniter version? What if there are 3 level or more?[/quote] The basic as i know it's to create a function somethin' like this controller_name/3 where 3 it's the id and you'll get all the subcateg with the parent_id 3 egs. paris,roma,london has parent_id 3 in the country list you have France with the id 3 and so on then when you move to the jquery the things are simple i think you wrap the options list into a div with and id and onchange you call a js function that will get the dom the content of the that div id. As i told you i'm not very exp with jquery but i think if you take a look over the Json u'll understand it very well. Here's a link with some screen casts http://www.weblee.co.uk/ the guy it's great you can learn jquery basis and codeigniter. Regards, Alex
[eluser]masdevid[/eluser]
[quote author="alexaaaaaaaaaa" date="1298423772"][quote author="masdevid" date="1298422685"][quote author="duellsy" date="1298392051"]Give this a read over, see if it helps http://www.subooa.com.au/blog/developmen...th-jquery/[/quote] What about in codeigniter version? What if there are 3 level or more?[/quote] The basic as i know it's to create a function somethin' like this controller_name/3 where 3 it's the id and you'll get all the subcateg with the parent_id 3 egs. paris,roma,london has parent_id 3 in the country list you have France with the id 3 and so on then when you move to the jquery the things are simple i think you wrap the options list into a div with and id and onchange you call a js function that will get the dom the content of the that div id. As i told you i'm not very exp with jquery but i think if you take a look over the Json u'll understand it very well. Here's a link with some screen casts http://www.weblee.co.uk/ the guy it's great you can learn jquery basis and codeigniter. Regards, Alex[/quote] Thanks for reply, I already found it by myself before I read your reply. Little modification from this site http://www.subooa.com.au/blog/developmen...th-jquery/ Code: jQuery('#level1').change(function(){ |
Welcome Guest, Not a member yet? Register Sign In |