• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

Dual Select List

horizon

n00b
Joined
Sep 4, 2006
Messages
2
Hi,

would someone know how to convert the left side (textbox) into the same thing as the right has (select box) also by modifying the JS code from the example of this URL:

http://www.mredkj.com/tutorials/tableaddrow.html

?

It would be a really good feature to have if two select options were used from side-to-side rather than a textbox and a select list. In the mean time, I was wondering if it were possible to post the variables to a PHP output file with arrays. Right now, only a JS script function returns those values and PHP cannot capture them.
 
Hi,

would someone know how to convert the left side (textbox) into the same thing as the right has (select box) also by modifying the JS code from the example of this URL:

http://www.mredkj.com/tutorials/tableaddrow.html

?

It would be a really good feature to have if two select options were used from side-to-side rather than a textbox and a select list.
What have you tried on your own? If you've got an adjusted version that you're beating your head against, then post it in CODE blocks.


In the mean time, I was wondering if it were possible to post the variables to a PHP output file with arrays. Right now, only a JS script function returns those values and PHP cannot capture them.
One approach would be to store the needed information in a container that PHP and JS can both interact with. Cookies and "hidden" input fields are two possible approaches.
 
You can use AJAX for your JS to communicate with PHP. To make it easy on yourself, use the Prototype or JQuery JS libraries, as they have a lot of cool functionality that you won't need to re-invent.
 
Back
Top