Results 1 to 4 of 4

Thread: scriptaculous problems

  1. #1
    Join Date
    Jan 2010

    Exclamation scriptaculous problems


    I have the following problems in IE8, the greenbars does not expand.


    It works fine in firefox, but in IE8 i get the following error:

    Message: 'style' is null or not an object
    Line: 285
    Char: 147
    Code: 0
    URI: http://www.energihjem.dk/wp-content/...ult.include.js

    Message: Object doesn't support this property or method
    Line: 161
    Char: 5
    Code: 0
    URI: http://www.energihjem.dk/wp-includes...s.js?ver=1.8.0

    Hope you can help me out..

  2. #2
    Join Date
    Mar 2007
    You should post the code that handles this.
    "Hippies.They're everywhere. They wanna save the earth, but all they do is smoke pot and smell bad."-Cartman

  3. #3
    Join Date
    Jan 2010

    error 1

    The first error message have the following code included:

    Object.extend(Element,{getWidth:function(element){element=$(element);return element.offsetWidth;},setWidth:function(element,w){element=$(element);element.style.width=w+"px";},s etHeight:function(element,h){element=$(element);element.style.height=h+"px";},setTop:function(elemen t,t){element=$(element);element.style.top=t+"px";},setLeft:function(element,l){element=$(element);el ement.style.left=l+"px";},setSrc:function(element,src){element=$(element);element.src=src;},setHref: function(element,href){element=$(element);element.href=href;},setInnerHTML:function(element,content) {element=$(element);element.innerHTML=content;}});Array.prototype.removeDuplicates=function(){for(i= 0;i<this.length;i++){for(j=this.length-1;j>i;j--){if(this[i][0]==this[j][0]){this.splice(j,1);}}}}

  4. #4
    Join Date
    Jan 2010

    Error 2

    And this is the second error:

    toggle: function(element, effect) {
    element = $(element);
    effect = (effect || 'appear').toLowerCase();
    var options = Object.extend({
    queue: { position:'end', scopeelement.id || 'global'), limit: 1 }
    }, arguments[2] || { });
    Effect[element.visible() ?
    Effect.PAIRS[effect][1] : Effect.PAIRS[effect][0]](element, options);

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

Recent Articles