Unfortunately, the username and password you have entered do not match!

Registration

Unfortunately, this username is already taken!

Unfortunately, this e-mail address is already used!

Please retype the verification code.

All fields are required

Multi Drop Down Calculation - help me

Welcome, Guest
Username Password: Remember me

Multi Drop Down Calculation - help me
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Multi Drop Down Calculation - help me

Multi Drop Down Calculation - help me 1 year, 8 months ago #11311

please tell me where is wrong

without calculation work
when insert a number in front does not work
does not show me items from JavaScript in the form.




items in drop down


25|Wien
15|Mödling
10|Vösendorf
45|Wiener Neudorf


_____________________________
JavaScript:




function dynamic2(parent,child)
{
var parent_array = new Array();
parent_array[''] = [''];

parent_array['25|Wien'] = ['PLZ','1010 Wien','1020 Wien','1030 Wien'];
parent_array['15|Mödling'] = ['PLZ','2340'];
parent_array['10|Vösendorf'] = ['PLZ','2334'];
parent_array['45|Wiener Neudorf'] = ['PLZ','2351'];

var thechild = document.getElementById(child);

thechild.options.length = 0;

var parent_value = parent.options[parent.selectedIndex].value;

if (!parent_array[parent_value]) parent_value = '';

thechild.options.length = parent_array[parent_value].length;

for(var i=0;i<parent_array[parent_value].length;i++)
{
thechild.options[i].text = parent_array[parent_value][i];
thechild.options[i].value = parent_array[parent_value][i];
}
}

Re:Multi Drop Down Calculation - help me 1 year, 8 months ago #11346

Hello,

From what I can see the script is not working because you are not setting the parent parameter correctly. If you set the drop-down items:

25|Wien


..then in order for the script to work please try using

parent_array['25'] = ['PLZ','1010 Wien','1020 Wien','1030 Wien'];


instead of

parent_array['25|Wien'] = ['PLZ','1010 Wien','1020 Wien','1030 Wien'];
Please note: my help is not official customer support. To receive your support, submit a ticket by clicking here
Regards,
RSJoomla! Development Team

Re:Multi Drop Down Calculation - help me 5 hours, 1 minute ago #0

Hello,
This is an automatically generated message.
We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you wish to receive our support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here: http://www.rsjoomla.com/support-policy.html.

Thank You!
PLEASE NOTE: This topic is NOT locked and you can add replies to it. Other users are free to reply as well. This message has been generated by a bot and has no effect on the topic whatsoever.
  • Page:
  • 1
Time to create page: 0.94 seconds
Feedback