Results 1 to 4 of 4

Thread: Formdependency with dt/dt/dd tags or tables ..and a bug

  1. #1
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Formdependency with dt/dt/dd tags or tables ..and a bug

    1) Script Title:
    Form Dependency Manager
    2) Script URL (on DD):
    http://www.dynamicdrive.com/dynamici...dependency.htm
    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:
    Code:
    	return el.options[el.selectedIndex].value;
    Thanks for any help!
    r.

  2. #2
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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)?

    thanks,
    r.

  3. #3
    Join Date
    Feb 2012
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    fixed that one by myself as well. :-/
    Is anyone still maintaining or taking care for this code??!

    Replaced the code with:

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

  4. #4
    Join Date
    Jan 2006
    Posts
    170
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Rookey. I'm having the same problem with dt tags. How did you solve the problem?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •