View Full Version : Formdependency with dt/dt/dd tags or tables ..and a bug

02-27-2012, 10:35 AM
1) Script Title:
Form Dependency Manager
2) Script URL (on DD):
3) Describe problem:

Hi, this is a great script, and with the 2 closed threads about it, I hope it has not been abandoned??

Basically I'm stuck where the first support thread ended. I really need to format the form as it has many fields, and in order for that to work, I have to surround the form fields by table/tr/td tags or by the more up to date method, by dt/dt/dd tags.
However, I can't get this to work. Does anyone have an example how to use it to prevent parts of the table or DT from displaying if other fields have a certain value? That would be of great help.

Furthermore, IE8 reports a bug (not so FF):

Message: Object doesn't support this property or method
Line: 56
Char: 2
Code: 0
URI: http://localhost/cs/FormManager.js

The line in aquestion is:

return el.options[el.selectedIndex].value;

Thanks for any help!

02-29-2012, 01:04 PM
Meanwhile I figured out how to make this work with dt/dd/dl tags.

But the bug under IE is still displaying ("Object doesn't support this property or method") -
PLEASE, can anyone help me to fix this (or know how to fix it)?


03-05-2012, 08:17 AM
fixed that one by myself as well. :-/
Is anyone still maintaining or taking care for this code??!

Replaced the code with:

if (el.tagName.toLowerCase() == "select"){
if (el.selectedIndex != -1) /* bug fix for IE */
return el.options[el.selectedIndex].value;

Jim Weinberg
03-07-2012, 03:01 PM
Rookey. I'm having the same problem with dt tags. How did you solve the problem?