Re: [JSMentors] Re: Image pre-loading

2011-02-17 Thread Loic Giraudel
There is a trick to make naturalWidth|Height work with IE by creating a new Image object with the same src attribute and to check its width / height. -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-archive.com/jsmentors@jsmentors.com/ To search via a

Re: [JSMentors] When we'll have a good IDE for JavaScript?

2011-01-27 Thread Loic Giraudel
On Thu, Jan 27, 2011 at 16:14, Jacob Beard jbea...@cs.mcgill.ca wrote: Unfortunately, because JavaScript is a dynamically typed language, building an IDE with proper autocomplete support is much more challenging than with a statically typed language like Java. Firebug 1.6 has a great

Re: [JSMentors] JSFiddle as a requirement (was: Addressing DOM)

2011-01-25 Thread Loic Giraudel
On Mon, Jan 24, 2011 at 22:49, אריה גלזר arieh.gla...@gmail.com wrote: jsfiddle has become a defacto standard of at least two very large libraries (mootools and JQ). I think it's quite different : it's not really useful to see some code using an old javascript library. A jQuery / Mootools

Re: [JSMentors] Re: Improved Module Pattern?

2011-01-03 Thread Loic Giraudel
I'm sorry, there cannot be any agree to disagree on this one. It absolutely, incontrovertibly, *does* execute var module = Module is just creating an alias for Module. Without this line, the init() method is still called and the module can be accessed through Module variable. var a =

Re: [JSMentors] Image polling through Javascript

2010-12-20 Thread Loic Giraudel
Or for better performance a simple incremented int variable. On Mon, Dec 20, 2010 at 10:43, fernando trasvina trasv...@gmail.com wrote: use ?Math.random() on ur uri or timestamp + Math.random() On Dec 20, 2010, at 3:35 AM, Amit Agarwal wrote: Hi every one, I need to poll an image using

Re: [JSMentors] Best practices for using Javascript

2010-12-17 Thread Loic Giraudel
Yes of course merging and minifying JS CSS is a good practice, but the main question is to know if it's better to load all the web app JS code in each page or to only load the specific code required by the current page. On Fri, Dec 17, 2010 at 09:21, Christophe Porteneuve

Re: [JSMentors] Best practices for using Javascript

2010-12-16 Thread Loic Giraudel
It's a really good question but I don't know if there is a good answer. I prefer to have one file with common functions for all my pages and use multiple JS files (and multiple CSS files) for specific behaviour. It's easier to develop and debug because there is no file with thousands of lines,