... ASP uses "<%" and "%>" to delimit areas of server-side ASP code. As ASP code can take the form of JScript, I have found JSLint to be a useful tool for...
196
DoNotSay
ghumham
Aug 23, 2008 10:44 pm
I have structured my Javascript into to files basicfunctions.js specialfunctions.js "basicfunctions.js" gets included allways - as every page of my site needs...
197
montago_2004
Aug 23, 2008 11:09 pm
try this : var p = "eval";...
198
Douglas Crockford
douglascrock...
Aug 24, 2008 1:32 pm
... You can turn that off with the Tolerate eval option....
199
Douglas Crockford
douglascrock...
Aug 24, 2008 1:35 pm
... I use /*global / to do that. It is far from ideal, but the language does not provide an ideal solution....
200
montago_2004
Aug 25, 2008 4:03 pm
... Don't you see the error ??? Or do I have to spell it for you ? var p = "e"+"v"+"a"+"l"; //which also report 'Eval is Evil' It's a string !, its harmless...
201
Douglas Crockford
douglascrock...
Aug 25, 2008 4:05 pm
... There is no reason to put eval in a string except to evade an eval restriction, so JSLint is doing its job....
202
Ben Collver
tylx
Aug 26, 2008 1:16 pm
Bill, Thank you for the response. I worked backward from it to get to an example of the problem. It behaves the same on several hosts: it outputs three 3's....
203
Jacob Davenport
jpdavenportjr
Aug 26, 2008 6:59 pm
I notice that you recommend in your book not to use substring (and you don't even mention the deprecated substr) and to use slice instead. I have the dead tree...
204
montago_2004
Aug 27, 2008 11:10 am
... var Explain = "You should be aware that eval might occur in non-script context" //that eval might be a token in a parser switch(token) { //.... case "eval"...
205
montago_2004
Aug 27, 2008 11:15 am
... What also would be VERY nice, was warnings (AND I UTTERLY MEAN WARNING, NOT ERROR) - for any function/pattern which isn't crossbrowser friendly some...
206
Douglas Crockford
douglascrock...
Aug 27, 2008 11:54 am
... Like I said before, there is an option to turn that check off. I don't recommend it....
207
Paul
dwtebriel
Aug 27, 2008 2:57 pm
... I had a hellava time figuring this one out. What I did was throw all of my common functions into a namespace (eg. Common). So for example: Common =...
208
Paul
dwtebriel
Aug 27, 2008 3:04 pm
... Whoops, omit the parenthesis after the last brace. That assume a singleton. That isn't needed in this situation....
209
Douglas Crockford
douglascrock...
Aug 27, 2008 3:05 pm
... I think you meant either var Common = { functionX: function () {}, myajaxcall: function () {} }; or var Common = function () { return { functionX: function...
210
Douglas Crockford
douglascrock...
Aug 31, 2008 12:36 am
I added a strict option that anticipates the "use strict"; pragma of ES3.1. If the first statement of a compilation unit is "use strict"; then the JavaScript...
211
Merlin
harry152566
Sep 1, 2008 11:04 am
There is a new version of my Widget Tester Widget at http://tinyurl.com/5unocx . This incorporates the 30 August, 2008 version of JSLint. The update has also...
212
santini.alberto
Sep 3, 2008 9:28 am
... [cut] ... I modified my code conventions. Before I wrote for the inner functions var my_function = function () { ... } Now, modifying the code complaining...
213
Nick Radov
nradov
Sep 4, 2008 7:33 pm
I am trying to use the command-line version of JSLint on an HTML file and it is failing with this error. Lint at line 28 character 1: Unexpected '@'. @import...
214
Douglas Crockford
douglascrock...
Sep 4, 2008 10:23 pm
... Thanks for the report. It should be better now. Please let me know if you find any other problems....
215
Adam
adamvandenhoven
Sep 9, 2008 7:57 pm
Hey guys, At RWE, I got the idea after hearing Douglas' talk on the Good Parts to use AdSafe and JSLint for a new (poorly considered in my opinion but I don't...
216
Douglas Crockford
douglascrock...
Sep 9, 2008 8:05 pm
... Clearly, but I don't know what. I don't see any of those problems....
217
Fred Lorrain
grumelo68
Sep 12, 2008 6:51 am
... perfect ... Any news ?...
218
Fred Lorrain
grumelo68
Sep 12, 2008 6:56 am
... I don't clearly undersand you(English is not my mother tong). Will you fix the issues or I made a mistake in my analysis?...
219
Douglas Crockford
douglascrock...
Sep 12, 2008 1:08 pm
... No....
220
Douglas Crockford
douglascrock...
Sep 12, 2008 1:10 pm
I corrected a bug that was producing an incorrect warning on some regular expression literals....
221
fjcastan
Sep 14, 2008 11:25 pm
I've been exprimenting with mixing jslint and the dojo editor to make syntax checking script editor. I've noticed that something in jslint seems to conflict...
222
Douglas Crockford
douglascrock...
Sep 15, 2008 5:53 pm
... Please let me know if you find out what it is. If it is failing on the dojo side, then it is likely a dojo problem that is triggered by something that...
223
fjcastan
Sep 16, 2008 2:48 am
... make ... when ... the ... The culprit appears to be here: (line 497 of fulljslint.hs) Object.prototype.union = function (o) { var n; for (n in o) if...
224
Douglas Crockford
douglascrock...
Sep 17, 2008 9:50 pm
... I hope Dojo fixes it. It should be more resilient. The fix is easy. Have them contact me if they have trouble. ... You don't need permission. Everything...