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

Re: eval() throwing error in IE

Expand Messages
  • Douglas Crockford
    ... That form of eval is not in the ECMAScript standard. I recommend that you stick with the standard language.
    Message 1 of 3 , Sep 27, 2007
    • 0 Attachment
      --- In json@yahoogroups.com, "mahesh_mission" <mahesh_mission@...> wrote:

      > If I try to say
      >
      > MainData.Company.Data.eval(EmpNo);
      >
      > This works fine in mozilla.
      >
      > But if I run the same program in IE, I get an error message "object
      > doesn't support this property or method".

      That form of eval is not in the ECMAScript standard. I recommend that
      you stick with the standard language.
    • kriszyp
      I think you want: MainData.Company.Data[EmpNo]
      Message 2 of 3 , Sep 27, 2007
      • 0 Attachment
        I think you want:
        MainData.Company.Data[EmpNo]
      Your message has been successfully submitted and would be delivered to recipients shortly.