[Help] with <select> auto reload - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [Help] with <select> auto reload (/showthread.php?tid=52976) Pages:
1
2
|
[Help] with <select> auto reload - El Forum - 07-04-2012 [eluser]C_Line[/eluser] i wan to register province and city like this ////////////////////////////////////////////////////////////////////////////////////// Code: <!--controller--> but it can't load, i dun wan use button when i select propinsi, kota_user automatically load database and display it help me,, thx [Help] with <select> auto reload - El Forum - 07-04-2012 [eluser]marjune[/eluser] the code above are in the views? [Help] with <select> auto reload - El Forum - 07-04-2012 [eluser]C_Line[/eluser] yea, this code in view [Help] with <select> auto reload - El Forum - 07-04-2012 [eluser]marjune[/eluser] well the propper of doing this code youre talking about is.... Controller Code: function functionanem(){ view Code: <select name=“propinsi” id=“propinsi”> [Help] with <select> auto reload - El Forum - 07-04-2012 [eluser]C_Line[/eluser] yea, i'm too lazy to call function from model XD but that didn't answer my question above T.T [Help] with <select> auto reload - El Forum - 07-04-2012 [eluser]dnc[/eluser] [quote author="C_Line" date="1341461651"]yea, i'm too lazy to call function from model XD but that didn't answer my question above T.T[/quote] First off, you will get better replies if you wrap your code in code tags. Code: I am a code Secondly, your database query should not be in your view. It should be in a model or at the very least a controller. No one is going to argue with you, or try to help you if you are "too lazy" to at least try to code correctly. [Help] with <select> auto reload - El Forum - 07-04-2012 [eluser]C_Line[/eluser] okay okay, i fix it [Help] with <select> auto reload - El Forum - 07-04-2012 [eluser]C_Line[/eluser] i done revised [Help] with <select> auto reload - El Forum - 07-04-2012 [eluser]marjune[/eluser] yes because the second select box which is kota depends from the first select box.. you're probably need a jquery to do it. [Help] with <select> auto reload - El Forum - 07-05-2012 [eluser]C_Line[/eluser] can't use ajax ? i dun know about jquery |