Dynamic select box issue
Posted: Tue Apr 27, 2010 1:33 pm
I'm using the technique to generate a dynamic select box described at http://xataface.com/wiki/Dynamic_select_boxes and it worked well for a while until the slaves_options has huge amount of data. This is annoying because user has to wait for 20 seconds or more to get response when he change value on master field or just clicks on the slave field.
I know that the slave_options has to loop through 26000 rows to filter out what is for the master value selected. I think using AJAX could fix this problem. I know another post viewtopic.php?f=4&t=4886&hilit=ajax demonstrates the solution. But how do we get this done in our code? Where should we put this code? Could you give me a detailed example demonstrating the steps to accomplish it? Many thanks.
I know that the slave_options has to loop through 26000 rows to filter out what is for the master value selected. I think using AJAX could fix this problem. I know another post viewtopic.php?f=4&t=4886&hilit=ajax demonstrates the solution. But how do we get this done in our code? Where should we put this code? Could you give me a detailed example demonstrating the steps to accomplish it? Many thanks.