Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Need some Help with show/hide

    Hello,

    I have the folowing code but it seems to be broken between "SM Decision Support" and "Incident and Request Management".

    Does anyone know how I resolve ?.

    The idea is when somebody opens the page all the sections are hidden/uncollapsed and the user can collapse individually each section with a click or by hitting the expand/collapse all link.




    ------------


    Have placed code in attachment as too long for this section
    Attached Thumbnails Attached Thumbnails Need some Help with show/hide-attachment.jpg  
    Attached Files Attached Files
    Last edited by atencorps; 12-31-2010 at 11:18 AM. Reason: change title

  • #2
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Please can somebody else me resolve this issue ?

    This is fairly urgent for me.

    thanks in advance

  • #3
    Regular Coder Krupski's Avatar
    Join Date
    Dec 2010
    Location
    United States of America
    Posts
    505
    Thanks
    39
    Thanked 47 Times in 46 Posts
    Quote Originally Posted by atencorps View Post
    Please can somebody else me resolve this issue ?

    This is fairly urgent for me.

    thanks in advance
    I would love to help you, but there isn't enough information for me to even have a clue what the problem is.

    Post some code that you need help with. Enclose it in code tags. Like this (I'll spell it "kode" so it doesn't mess up.. but it's "code".).

    [kode]
    function yourCode()
    {
    var a = 1;
    }
    [/kode]


    OK?
    "Anything that is complex is not useful and anything that is useful is simple. This has been my whole life's motto." -- Mikhail T. Kalashnikov

  • #4
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hello,

    I posted the code in the attachment called .zip as the code is too long to be put in the main message

    Thanks

  • #5
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,028
    Thanks
    75
    Thanked 4,325 Times in 4,291 Posts
    I don't think it has anything to do with the JS code, per se. I think you just have some bad HTML in there.

    You have AT LEAST one extra <ul> tag, but I don't know what else might be wrong.

    It's horribly messy code and hard to follow.

    I think you just need to go over it VERY CAREFULLY again, making sure you have all the <ul> and <li> and </li> and </ul> in the right places.

    It would help if you would be more careful about your code indentation, so you could see where maybe the error points are.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.

  • #6
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,028
    Thanks
    75
    Thanked 4,325 Times in 4,291 Posts
    Quote Originally Posted by atencorps View Post

    I posted the code in the attachment called .zip as the code is too long to be put in the main message
    It wouldn't be all that long if you would simply *INCLUDE* the jQuery library instead of copy/pasting it into your own code. That's a really bad idea, you know. If bugs are fixed in the library, you wouldn't automatically get the fixes, as you do it now.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

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