Search the web
Sign In
New User? Sign Up
jslint_com · JSLint.com
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want to share photos of your group with the world? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Messages 138 - 167 of 993   Oldest  |  < Older  |  Newer >  |  Newest
Messages: Simplify | Expand   (Group by Topic) Author Sort by Date ^
138
To concatenate strings I use: // Concatenation of string 'str', n times. function repeatstr (n, str) { var an = new Array(1 + n); return an.join(str); } ... ...
osteocosmosis
Offline Send Email
Aug 3, 2008
12:53 am
139
... var an = []; an.length = n + 1;...
Douglas Crockford
douglascrock...
Offline Send Email
Aug 3, 2008
12:55 am
140
One big issue in JavaScript is the onload issue. Many of the frameworks have a periodic check to see if the body has loaded using various methods. Since script...
riderpaulpaul
Online Now Send Email
Aug 4, 2008
3:54 am
141
... I don't see how it solves anything. There is a lot in the HTML recommendations that doesn't make sense, but the requirement that the tags all go either...
Douglas Crockford
douglascrock...
Offline Send Email
Aug 4, 2008
10:51 pm
142
The issue I was referring to is that the body tag needs to be completely loaded before a DOM script runs, especially if you have something like...
Paul de Jong
riderpaulpaul
Online Now Send Email
Aug 4, 2008
11:28 pm
143
... Not always, I have inline scripts that work just fine so long as the parts of the DOM they are manipulating are ready & available. ... Seems reasonable to...
Andy Stevens
andystevens_...
Offline Send Email
Aug 5, 2008
2:36 pm
144
The issue with onload is that it is not ondomload, so if any file being downloaded takes too long the script does not fire and the user could be interacting...
Paul de Jong
riderpaulpaul
Online Now Send Email
Aug 5, 2008
6:00 pm
145
... no.. its very good practise to code and debug... do you disagree ? this trick relies on a proper parser. I've made it work in my Editor... also works in...
montago_2004
Offline Send Email
Aug 6, 2008
1:16 pm
146
IMHO, I don't think it's the domain of JSlint to handle these kind of comments, since the output of this algorithm is supposed to be clean code that is meant...
Klemen SlaviÄ
klemen.slavic
Offline Send Email
Aug 6, 2008
1:30 pm
147
... code ... comments still ... code leak ... If only JSLint would report it as an "Error"... JSLint stops completely, so its not even possible to simply...
montago_2004
Offline Send Email
Aug 6, 2008
5:07 pm
148
... upon ... http://groups.google.com/group/jquery-en/browse_thread/thread/e53f483dd67e4d08/f72f7832ead80dfb?lnk=gst&q=JSLint#f72f7832ead80dfb ... JSLint stops...
Douglas Crockford
douglascrock...
Offline Send Email
Aug 6, 2008
5:15 pm
149
/* Douglas ain't smart. */ Douglas is smart. //------------------------- Q: which of those two statements are more accurate ? A: the one, which is not a...
montago_2004
Offline Send Email
Aug 6, 2008
8:18 pm
150
... Yes it should, because sometimes syntax errors are hidden in comments. Again, I caution you to avoid programming conventions that depend on intentional...
Douglas Crockford
douglascrock...
Offline Send Email
Aug 6, 2008
8:20 pm
151
... For the reasoning behind removing the comments may I recommend: JavaScript: The Good Parts, Douglas Crockford, O'Reilly, 2008....
Paul de Jong
riderpaulpaul
Online Now Send Email
Aug 6, 2008
8:47 pm
152
Hello, Here a piece of code: if (this.newsDetailHasAbstract) {HTML += '<div class="articleAbstract">' + this.myData.record[0][0][3].replace(/<\/?a[^>]*>/gi,'')...
Fred Lorrain
grumelo68
Offline Send Email
Aug 12, 2008
11:28 am
153
... Fixed. Thanks for the report....
Douglas Crockford
douglascrock...
Offline Send Email
Aug 12, 2008
11:46 am
154
... Wow ! Incredible! Thank you so much for your quick update. Your tool really rocks....
Fred Lorrain
grumelo68
Offline Send Email
Aug 12, 2008
2:59 pm
155
Hi Doug, I wrote an example script and it appears to bind to the current value of the variable "i". The script is at the following URL. ...
Ben Collver
tylx
Offline Send Email
Aug 13, 2008
5:38 pm
156
... Create a page with three buttons, a, b, and c. When you click on a button, it alerts its number. Modify your loop to get each element by id and attach an...
Douglas Crockford
douglascrock...
Offline Send Email
Aug 13, 2008
6:31 pm
157
I have two functions: function blddrgable() { $j('div.blddrg').draggable("destroy").droppable("destroy"); ...
DoNotSay
ghumham
Offline Send Email
Aug 14, 2008
1:26 pm
158
Hello, Is it a good practice to try to use a single 'var' statement per scope? For sure it help the compression of the script. If it's a best practice can an...
Fred Lorrain
grumelo68
Offline Send Email
Aug 14, 2008
1:26 pm
159
Hello, JSLint generate an error if a symbol is not declared. That's perfect! What about generating a warning if a symbol is declared but never used? A switch...
Fred Lorrain
grumelo68
Offline Send Email
Aug 14, 2008
1:26 pm
160
... gboxJSON2("/swapbild",{"von":$j(this).attr("id"),"nach":$j(ui.draggable).attr("id")},function(erg){}); ... The global trick obviously only works if the...
Douglas Crockford
douglascrock...
Offline Send Email
Aug 14, 2008
2:54 pm
161
... I don't understand this....
Douglas Crockford
douglascrock...
Offline Send Email
Aug 14, 2008
3:33 pm
162
... JSLint does identify unused variables in the function report. Is hat not enough?...
Douglas Crockford
douglascrock...
Offline Send Email
Aug 14, 2008
3:35 pm
163
I think he's trying to ask if it is better to use this form: var x,y,z; versus var x; var y; var z; My opinion is yes, because it makes the script smaller and...
Arthur Blake
blakesys
Offline Send Email
Aug 14, 2008
4:07 pm
164
... could help ... Thanks, I get it now. I think it is a good suggestion....
Douglas Crockford
douglascrock...
Offline Send Email
Aug 14, 2008
4:25 pm
165
JSLint is able to parse Yahoo Widgets .kon files. Is any using JSLint on widgets? Would anyone nice if I took that feature out?...
Douglas Crockford
douglascrock...
Offline Send Email
Aug 14, 2008
10:16 pm
166
... used? ... It's fine to have it in the report (I haven't seen it) but imagine I have 100 methods in my object. For every unused symbol I will have to track...
Fred Lorrain
grumelo68
Offline Send Email
Aug 15, 2008
3:41 pm
167
Hey all, I currently have code that looks like the following: <script type="text/javascript"> //<![CDATA[ ... //]]> </script> Since I'm doing this in xhtml, my...
Paul
dwtebriel
Offline Send Email
Aug 15, 2008
3:41 pm
Messages 138 - 167 of 993   Oldest  |  < Older  |  Newer >  |  Newest
Advanced
Add to My Yahoo!      XML What's This?

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help