prototype prob

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • oeyvind toft

    prototype prob

    I have set up a 'class' using the prototype prop.

    I pass the constructor a html tag children object and set 'this.obj = obj'.
    When calling the first method of the class using the object it works fine.
    However, when calling any second method using the object i get an error.
    When debugging(alert ing) I am told that in the second method 'this.obj' is
    undefined.
    I have tried changing the class to call different methods first, and the
    result is the same:
    first methodcall works fine, later calls to other class methods result in
    errors.

    It seems the first 'this.obj' instance is acceptable, later ones are not...

    I dont get it...

    Any ideas ?

    --





  • Andrew Thompson

    #2
    Re: prototype prob

    On Sat, 28 Aug 2004 02:05:00 +0200, oeyvind toft wrote:
    [color=blue]
    > Any ideas ?[/color]

    Supply URL.

    --
    Andrew Thompson
    http://www.PhySci.org/ Open-source software suite
    http://www.PhySci.org/codes/ Web & IT Help
    http://www.1point1C.org/ Science & Technology

    Comment

    • oeyvind toft

      #3
      Re: prototype prob

      Sorry, not out there yet...
      Its a big ugly script in the making...

      Oeyvind

      --




      "Andrew Thompson" <SeeMySites@www .invalid> skrev i melding
      news:r0rjij34c9 30.4aebiw0b2quj $.dlg@40tude.ne t...[color=blue]
      > On Sat, 28 Aug 2004 02:05:00 +0200, oeyvind toft wrote:
      >[color=green]
      > > Any ideas ?[/color]
      >
      > Supply URL.
      >
      > --
      > Andrew Thompson
      > http://www.PhySci.org/ Open-source software suite
      > http://www.PhySci.org/codes/ Web & IT Help
      > http://www.1point1C.org/ Science & Technology[/color]


      Comment

      • Michael Winter

        #4
        Re: prototype prob

        On Sat, 28 Aug 2004 02:20:35 +0200, oeyvind toft <oeyvtoft@onlin e.no>
        wrote:

        [Top-post fixed]
        [color=blue]
        > "Andrew Thompson" <SeeMySites@www .invalid> skrev i melding
        > news:r0rjij34c9 30.4aebiw0b2quj $.dlg@40tude.ne t...
        >[color=green]
        >> Supply URL.[/color]
        >
        > Sorry, not out there yet...
        > Its a big ugly script in the making...[/color]

        Well, at least provide us with the (relevant) code you do have. We can
        hardly tell what's wrong without seeing it!

        Mike


        Please do not top-post. Responses should go underneath what you are
        responding to, and irrelevant text should be snipped.

        --
        Michael Winter
        Replace ".invalid" with ".uk" to reply by e-mail.

        Comment

        • oeyvind toft

          #5
          Re: prototype prob

          Hi again

          I`ve found the problem. I had some errors in some dynamic code elements so
          that
          class methods called 'afunction' instead of 'this.afunction '. Thats why the
          'this.obj' wasnt
          recognized.

          Oeyvind

          --




          "Michael Winter" <M.Winter@bluey onder.co.invali d> skrev i melding
          news:opsde3e4r2 x13kvk@atlantis ...[color=blue]
          > On Sat, 28 Aug 2004 02:20:35 +0200, oeyvind toft <oeyvtoft@onlin e.no>
          > wrote:
          >
          > [Top-post fixed]
          >[color=green]
          > > "Andrew Thompson" <SeeMySites@www .invalid> skrev i melding
          > > news:r0rjij34c9 30.4aebiw0b2quj $.dlg@40tude.ne t...
          > >[color=darkred]
          > >> Supply URL.[/color]
          > >
          > > Sorry, not out there yet...
          > > Its a big ugly script in the making...[/color]
          >
          > Well, at least provide us with the (relevant) code you do have. We can
          > hardly tell what's wrong without seeing it!
          >
          > Mike
          >
          >
          > Please do not top-post. Responses should go underneath what you are
          > responding to, and irrelevant text should be snipped.
          >
          > --
          > Michael Winter
          > Replace ".invalid" with ".uk" to reply by e-mail.[/color]


          Comment

          Working...