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

Re: [jslint] Global variables implied error - not received last time I checked this document

Expand Messages
  • mnewton32@yahoo.ca
    Escape is not a good idea, or so I ve been told. Use encodeURIComponent instead. Or I think that s it. Not at a PC right now. Sent from my BlackBerry device on
    Message 1 of 4 , Apr 20, 2009
    • 0 Attachment
      Escape is not a good idea, or so I've been told. Use encodeURIComponent instead.
      Or I think that's it. Not at a PC right now.


      Sent from my BlackBerry device on the Rogers Wireless Network

      -----Original Message-----
      From: "starie78" <laura.starie@...>

      Date: Mon, 20 Apr 2009 14:23:43
      To: <jslint_com@yahoogroups.com>
      Subject: Re: [jslint] Global variables implied error - not received last time I checked this document


      Hi,

      Yes you were right - I knew I'd missed something obvious (first day back after Easter Hols so my brain not full functioning ;) )

      I still have

      Error:

      Implied global: escape 19 20 110 396

      Though, which is puzzling as I have used escape on several other lines as well.

      Any suggestions?

      Laura

      --- In jslint_com@yahoogroups.com, mnewton32@... wrote:
      >
      > You could pobably get rid of those errors by checking the "assume a browser" box which will let JSLint know about the document object and stuff.
      >
      > Sent from my BlackBerry device on the Rogers Wireless Network
      >
      > -----Original Message-----
      > From: "starie78" <laura.starie@...>
      >
      > Date: Mon, 20 Apr 2009 14:10:23
      > To: <jslint_com@yahoogroups.com>
      > Subject: [jslint] Global variables implied error - not received last time I checked this document
      >
      >
      > Hi,
      >
      > I don't know what I have done differently, but last time I checked my
      > document I didn't get this error. I have only made slight modifications
      > since, so maybe I'm not selecting the right options in JSLint.
      >
      > Could someone please point me in the right direction.
      >
      > Laura
      >
      > from JSLint report
      >
      > Error: Implied global: XMLHttpRequest 26, alert 147, document 39 45
      > 177 308 369 420, escape 19 20 110 396, location 413, setTimeout 338,
      > window 52 288
      >
      >
      > Extract from my code
      > line 147
      > alert("doi = " + doi);
      >
      > line 177
      > for (var i=0;i<document.forms[0].elements.length;i++);
      >
      >
      > [Non-text portions of this message have been removed]
      >
      >
      >
      >
      > [Non-text portions of this message have been removed]
      >





      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.