Loading ...
Sorry, an error occurred while loading the content.

Not implemented

Expand Messages
  • onehottmin
    would anyone be aware of the Not implemented error that explorer gives me here http://onehottmin.com/ this is the javascript file that the error is coming from
    Message 1 of 3 , Aug 2, 2002
    • 0 Attachment
      would anyone be aware of the Not
      implemented error that explorer
      gives me here http://onehottmin.com/
      this is the javascript file that
      the error is coming from
      http://onehottmin.com/js/cards.js
      and the error is said to be at
      the begining of the second line
      here:
      eval(N[xii]+'['+xi+']=new Image();'+N[xii]+'['+xi+'].src="img/'+N
      [xii].toLowerCase()+'/'+namez[xj]+'.gif";'+N[xii]
      +'['+xi+'].onload=addImg()');
      xi++;
    • onehottmin
      if anyone is having troubles with the site you can use http://68.36.147.102/ and http://68.36.147.102/js/cards.js last night i had a huge lightning storm and
      Message 2 of 3 , Aug 3, 2002
      • 0 Attachment
        if anyone is having troubles with the site you can use
        http://68.36.147.102/ and http://68.36.147.102/js/cards.js
        last night i had a huge lightning storm and lost the power
        and my ip addy was changed so it will take about 24 hrs for
        the registrar's to update my info :-/
        ps: Has anyone ever written a script that got this type
        of Not implemented error before? any ideas on what it might mean?
        here is the chunk of code that was triggering this error agian




        //*******---Image-Loader

        var xi=0;
        var xj=0;
        var xii=0;
        var xsw=0;
        var B=new Array();
        var T=new Array();
        var C=new Array();
        var N=["B","T","C"];
        var namez=
        ['2','3','4','5','6','7','8','9','10','a','j','q','k','lc','lh','ls','
        sc','sh','ss','ld','sd','as','jc','jd','jh','js','qc','qd','qh','qs','
        kc','kd','kh','ks'];

        function intimg()
        {
        if(xj==19&&xsw==0)xi=0,xj=0,xii=1,xsw=1;
        if(xj==22)xii=2,xi=0;
        if(xj==namez.length)return;
        eval(N[xii]+'['+xi+']=new Image();'+N[xii]+'['+xi+'].src="img/'+N
        [xii].toLowerCase()+'/'+namez[xj]+'.gif";'+N[xii]
        +'['+xi+'].onload=addImg()');
        xi++;
        xj++;
        intimg();
        }
        and this:
        xi++;
        is the line that has the error on the first character ill try
        leaving out the addImg onload command which is this empty function

        function addImg()
        {
        return;
        }

        ideas anyone?
      • davidblackledge
        ... The most blatant error is: ... .onload = addImg() When you assign a event handler this way, the right hand side has to be a function REFERENCE... and
        Message 3 of 3 , Aug 8, 2002
        • 0 Attachment
          --- In javascript3@y..., onehottmin <no_reply@y...> wrote:
          > ps: Has anyone ever written a script that got this type
          > of Not implemented error before? any ideas on what it might mean?
          > here is the chunk of code that was triggering this error agian
          > function intimg()
          > {
          > if(xj==19&&xsw==0)xi=0,xj=0,xii=1,xsw=1;
          > if(xj==22)xii=2,xi=0;
          > if(xj==namez.length)return;
          > eval(N[xii]+'['+xi+']=new Image();'+N[xii]+'['+xi+'].src="img/'+N
          > [xii].toLowerCase()+'/'+namez[xj]+'.gif";'+N[xii]
          > +'['+xi+'].onload=addImg()');
          > xi++;
          > xj++;
          > intimg();
          > }
          > and this:
          > xi++;
          > is the line that has the error on the first character ill try
          > leaving out the addImg onload command which is this empty function
          >
          > function addImg()
          > {
          > return;
          > }
          >
          > ideas anyone?

          The most blatant error is:
          ... .onload = addImg()
          When you assign a event handler this way, the right hand side has to
          be a function REFERENCE... and you're CALLING your function which is
          returning a void value, so you're basically doing the same as:
          ... .onload = undefined;
          change it to
          ... .onload = addImg;

          That could potentially be the cause of the error if IE doesn't like
          you assigning an undefined value to an event handler. (and the use of
          eval with a complex string could be confusing IE about what the line
          number is)

          Second, I'm awfully uncomfortable with your use of the comma operator
          in lines like:
          if(xj==19&&xsw==0)xi=0,xj=0,xii=1,xsw=1;
          Why are you doing that? use a semicolon to separate them and wrap the
          set of assignments with braces {}. I can't be certain whether this is
          causing any unwanted results... but if you somehow are ending up
          assigning xi with a value other than an integer, then that could
          definitely cause your unimplemented error... as in "the use of ++ is
          not implemented for strings [or objects or null or floats or
          whatever]" Try outputting a "typeof" on xi before incrementing it.

          Finally, there is a slight possibility that you're recursion is too
          deep and IE is giving you the wrong error message, but that seems
          unlikely.

          David
          http://David.Blackledge.com
        Your message has been successfully submitted and would be delivered to recipients shortly.