Trying to Validate HTML but can't find solution for: there is no attribute "onload"

Discussion in 'HTML & Website Design' started by marcusa007, Feb 9, 2011.

  1. #1
    This is the code used by the menu script:

    <img style="display:none;" src="modules/mod_vm_accordion/images/open.gif" alt="menu" onload="javascript:dojo.addOnLoad(function(){var accordion = new WWAccordion({node : dojo.byId('vm-accordion<?php echo $config->uniqueid; ?>'), mode: '<?php echo $config->mode; ?>', interval: '<?php echo $config->duration; ?>', level : 0})});"/>

    I can't seem to find a solution to make this W3C HTML Validator. It keeps bringing me there is no attribute "onload"

    I have searched the web but get more confused as I read stuff I found online.

    Thanks for looking and any help offered.

    Markus
     
    marcusa007, Feb 9, 2011 IP
  2. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #2
    onload is only valid for the body and frames.
     
    drhowarddrfine, Feb 9, 2011 IP
  3. marcusa007

    marcusa007 Active Member

    Messages:
    312
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #3
    could I just leave out the onload? this is a menu tool I purchased online and support is equal to none.
     
    marcusa007, Feb 9, 2011 IP
  4. drhowarddrfine

    drhowarddrfine Peon

    Messages:
    5,428
    Likes Received:
    95
    Best Answers:
    7
    Trophy Points:
    0
    #4
    Haven't a clue what they use it for. If their support is so good, why are you asking here?
     
    drhowarddrfine, Feb 9, 2011 IP
  5. marcusa007

    marcusa007 Active Member

    Messages:
    312
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #5
    I was referring to the support they offer which is none! That is why I'm asking here. I can post the code if that helps?
     
    marcusa007, Feb 9, 2011 IP
  6. CSM

    CSM Active Member

    Messages:
    1,047
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    55
    #6
    Is there any URL where we could see the "script" in action? ;)
     
    CSM, Feb 9, 2011 IP
  7. marcusa007

    marcusa007 Active Member

    Messages:
    312
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58