Results 1 to 2 of 2

Thread: setAttribute error

  1. #1
    Join Date
    Sep 2007

    setAttribute error

    This code has worked for the longest time, but now has failed.
    I get this message:Unable to get property 'setAttribute' of undefined or null reference.

    I cant work this out for the life of me.


    var cDrag = DragDrops.length;
    DragDrops[cDrag] = [];

    Each item passed to this function should be a "container". Store each
    of these items in our current container
    for(var i=0; i<arguments.length; i++){
    var cObj = arguments[i];
    cObj.setAttribute('DropObj', cDrag);

  2. #2
    Join Date
    Mar 2009
    It would appear that the fault lies in what is being passed as arguments to the function. What collects the element references and how?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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