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

Re: whats that?

Expand Messages
  • Jon Stephens
    Well, that s not really a program, it s just a single line of code. At any rate, that s an example of an object literal, and (as is usually the case in
    Message 1 of 2 , Oct 30, 2004
      Well, that's not really a program, it's just a single line of code.

      At any rate, that's an example of an object literal, and (as is usually
      the case in JavaScript) you can access its members using either object
      or associative array notation, e.g.

      to[id]["svg"] or to[id].svg


      > From: "svgsearcher" <svgsearcher@...>
      > Subject: whats that?
      >
      >
      >
      > hi,
      >
      > I found a good part of a side and I wanna use it in my js
      > its the following:
      > ___________________________________________________________________
      >
      > ta[id] = {
      > 'svg' : obj.document.getElementById
      > (id),
      > 'doc' : obj.document,
      > 'viewPortInit' : new Array(),
      > 'viewPortScal' : 1,
      > 'viewBox' : viewBoxArr,
      > 'viewPortActu' : new Array(),
      > 'toolTip' : new Object(),
      > 'winPxW' : winW,
      > 'winPxH' : winH
      > };
      > ___________________________________________________________________
      >
      > what does the program do?
      > is that an array?
      >
      > thanx
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.