Results 1 to 5 of 5

Thread: Form Dependency Manager

  1. #1
    Join Date
    Oct 2005
    Location
    Liverpool, UK
    Posts
    87
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Question Form Dependency Manager

    Form Dependency Manager

    http://www.dynamicdrive.com/dynamici...dependency.htm

    This is a great script and I use it all the time

    I have come across a problem with it when used in conjunction with another script - called Nifty Cube .... a useful script for rounding 'div' boxes on the page... http://www.html.it/articoli/niftycube/index.html

    Anyway, when used with Form Dependency Manager - NiftyCube no longer 'rounds' the divs on the page. I cannot see any obvious duplicate var names used & I think the FDM .js is protected anyway.

    Anybody got any ideas?

    Thanks in advance,

    N.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I suspect an onload conflict.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Oct 2005
    Location
    Liverpool, UK
    Posts
    87
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Looking at it .... I suspect you are correct!

    I have two onload calls:

    <script type="text/javascript">
    window.onload=function() {Nifty("div#container_big","big");}
    </script>


    <script type="text/javascript">
    window.onload = function() {setupDependencies('myForm');};
    </script>

    Can you suggest a way around this please?

  4. #4
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Yes, remove one and set the other to:
    Code:
    <script type="text/javascript">
    window.onload = function() {
      setupDependencies('myForm');
      Nifty("div#container_big", "big");
    };
    </script>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  5. #5
    Join Date
    Oct 2005
    Location
    Liverpool, UK
    Posts
    87
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Excellent.
    It's now working properly .... I got mixed up with too many {}'s in my attempt !!

    This has also highlighted (again) how I should get around multiple onloads - thank you!

    N.

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
  •