Doh.
  -----Original Message-----
  From: Marlon Moyer [mailto:[EMAIL PROTECTED]
  Sent: Saturday, February 14, 2004 9:44 PM
  To: CF-Community
  Subject: RE: _javascript_ Array Question

  This line right here is the problem

  myRoute[1][0][0] = 'Adam's Test Route';

  you have a single quote inside the string.

  You might want to download Mozilla or one of the derivatives because they
  give you a lot better debugging information.

  --
  marlon

  "And Bobby you are right, I am being selfish, but the last time I checked,
  we don't have a whole lot of songs that feature the cowbell!"

  > -----Original Message-----
  > From: Heald, Tim [mailto:[EMAIL PROTECTED]
  > Sent: Saturday, February 14, 2004 2:35 PM
  > To: CF-Community
  > Subject: _javascript_ Array Question
  >
  > You kids see anything wrong with this array?  All I get for an error is
  > "Expected ;".
  >
  > var myRoute = new Array(1);
  >
  >
  >
  > myRoute[0] = new Array(1);
  > myRoute[0][0] = new Array(1);
  >
  > // route information, name then id
  > myRoute[0][0][0] = '120A';
  > myRoute[0][0][1] = 83;
  >
  > // iteration info name then iteration
  > myRoute[0][1][0] = '1';
  > myRoute[0][1][1] = 53;
  >
  >
  >
  >
  > myRoute[1] = new Array(1);
  > myRoute[1][0] = new Array(1);
  >
  > // route information, name then id
  > myRoute[1][0][0] = 'Adam's Test Route';
  > myRoute[1][0][1] = 84;
  >
  > // iteration info name then iteration
  > myRoute[1][1][0] = '1';
  > myRoute[1][1][1] = 54;
  >
  > // iteration info name then iteration
  > myRoute[1][2][0] = '2';
  > myRoute[1][2][1] = 56;
  >
  >
  >
  >
  > myRoute[2] = new Array(1);
  > myRoute[2][0] = new Array(1);
  >
  > // route information, name then id
  > myRoute[2][0][0] = 'Special';
  > myRoute[2][0][1] = 85;
  >
  > // iteration info name then iteration
  > myRoute[2][1][0] = '1';
  > myRoute[2][1][1] = 55;
  >
  > --
  > Timothy Heald
  > Web Portfolio Manager
  > Overseas Security Advisory Council
  > U.S. Department of State
  > 571.345.2319
  >
  > The opinions expressed here do not necessarily reflect those of the U.S.
  > Department of State or any affiliated organization(s).  Nor have these
  > opinions been approved or sanctioned by these organizations. This e-mail
  > is
  > unclassified based on the definitions in E.O. 12958.
  >
  >
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

Reply via email to