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

Re: [jslint] Error message for not defined JScript Object

Expand Messages
  • tzvikam@gmail.com
    Thanks, I will... BTW, I m using JScript as a scripting language for automatic testing on a windows machine, and not for Web programming. That s why I need
    Message 1 of 5 , Mar 23, 2010
    View Source
    • 0 Attachment
      Thanks, I will...

      BTW, I'm using JScript as a scripting language for automatic testing on a windows machine, and not for Web programming.
      That's why I need these 'ActiveXObject' and 'WScript' objects, to connect to some special COM object.

      --- In jslint_com@yahoogroups.com, Michael Mikowski <z_mikowski@...> wrote:
      >
      > You might add those to a global comment, e.g, at the top of your script:
      >
      > /*global ActiveXObject Enumerator WScript CScript */
      >
      > and then jslint won't complain. That said, those all look IE specific. Have you considered using a cross-browser framework like jquery to help get what you need?
      >
      >
      > This may also help:
      >
      > /*jslint browser: true */
      >
      >
      >
      >
      >
      > ________________________________
      > From: "tzvikam@..." <tzvikam@...>
      > To: jslint_com@yahoogroups.com
      > Sent: Mon, March 22, 2010 12:47:26 AM
      > Subject: [jslint] Error message for not defined JScript Object
      >
      >
      > Hi
      >
      > When using the JSLint to check jscripts, why do I get an error messages for known and defined JScripts objects like 'ActiveXObject' , 'Enumerator' and for the 'WScript'/'CScript' Objects ?
      >
      > Douglas, Can you add an option that 'knows' that objects ?
      >
      > Best regards
      > Tzvika
      >
      >
      >
      >
      > [Non-text portions of this message have been removed]
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.