Re: [JSMentors] Re: client-side development environment

2011-03-08 Thread Tom de Koning
regarding the autocomplete; Webstorm is pretty OK, but I like IntelliJ better as it supports JsTestDriver from Google (on the wife's mb pro). Having said that, I now tend to use XRefresh in combination with a simple text editor on windows (have to work on win at my job). XRefresh really shines whe

Re: [JSMentors] A word of thanks

2011-03-08 Thread Acaz Souza Pereira
Wow. Congratulations!! 2011/3/8 Rey Bango > So happy that the list helped. It's exactly what Asen & I wanted when we > started it. Glad to see it's working. :) > > Many congrats on your new job!! > > Rey > > > On Mon, Mar 7, 2011 at 8:34 PM, Amit Agarwal wrote: > >> Hi All, >> >> I have been a

Re: [JSMentors] Loading .js files dynamically

2011-03-08 Thread Mark McDonnell
I agree with Kyle Simpson (@Getify, creator of LABjs) in that we shouldn't need script loaders - hence his fight to get async=true implemented as part of the spec - but at this stage we don't have a whole lot of alternatives. But saying that, I'm currently working on an AJAX based script loader

Re: [JSMentors] Loading .js files dynamically

2011-03-08 Thread Baris Bikmaz
I think this is a general problem with JavaScript. We shouldn't use libraries to load JavaScript dynamically. JavaScript should do this by itself like other scripting languages. But the concept of loading scripts must be different, like should I load the script asynchron or synchron, should the scr

Re: [JSMentors] A word of thanks

2011-03-08 Thread Rey Bango
So happy that the list helped. It's exactly what Asen & I wanted when we started it. Glad to see it's working. :) Many congrats on your new job!! Rey On Mon, Mar 7, 2011 at 8:34 PM, Amit Agarwal wrote: > Hi All, > > I have been a regular reader of this group posts since the group was > started

Re: [JSMentors] Re: client-side development environment

2011-03-08 Thread Ben Barber
On Tue, Mar 8, 2011 at 3:45 AM, DaveC wrote: > The only thing I don't have is automagic sprite creation but I reckon > it's possible using SpriteMe or a similar service - I tend to hand > create sprite images that make sense e.g. icon-up, icon-over, icon- > down, icon-disabled. If you haven't l

Re: [JSMentors] Loading .js files dynamically

2011-03-08 Thread Nick Morgan
Sorry, I've just realised this doesn't work, because it's not waiting for the script to load. Like Diego said, if you're going to do it this way then fire the callback on the onload event of the script. On 8 March 2011 12:12, Nick Morgan wrote: > A really basic fix would be: > > function loadScr

Re: [JSMentors] Loading .js files dynamically

2011-03-08 Thread Diego Perini
On Sat, Mar 5, 2011 at 6:46 PM, Jarek Foksa wrote: > Let's say that I have four scripts: init.js, script-1.js, script-2.js > and script-3.js. Only init.js is declared in XHTML file, the other > three scripts are loaded from init.js. The code for each file is as > follows: > > init.js > ---

Re: [JSMentors] A word of thanks

2011-03-08 Thread Mark McDonnell
Congrats on the new job! Sent from my iPhone On 8 Mar 2011, at 04:34, Amit Agarwal wrote: > Hi All, > > I have been a regular reader of this group posts since the group was started. > Quality of people and posts in this group is really fantastic. All the > Javascript related discussions happ

Re: [JSMentors] Loading .js files dynamically

2011-03-08 Thread Nick Morgan
A really basic fix would be: function loadScript(url, callback) { var script = document.createElement('script'); script.src= url + "?r=" + Math.floor(Math.random()*1); script.setAttribute("charset", "UTF-8") document.querySelector('head').appendChild(script); if (typeof callback == 'funct

[JSMentors] Re: client-side development environment

2011-03-08 Thread DaveC
Thanks James I'll have a look at this - yeah I know it might not be "easy" but with fast modern JS VMs I would have thought it entirely possible to parse a "project" and generate JS map "view" of objects e.g. if it parsed my sample code above it would know that Widget is a global Object literal wit

Re: [JSMentors] Here Documents - has there ever been a standardization discussion?

2011-03-08 Thread Nick Morgan
On 7 March 2011 13:01, Peter van der Zee wrote: > Am I missing emails again? I've not seen Taka's email in this thread. > > Ditto. -- Nick Morgan http://skilldrick.co.uk @skilldrick -- To view archived discussions from the original JSMentors Mailman list: http:

Re: [JSMentors] Re: Loading .js files dynamically

2011-03-08 Thread Tom de Koning
Not sure why steal.js is missing from javascript mvc. Seams to work for them. Tom On Tue, Mar 8, 2011 at 10:07 AM, Peter van der Zee wrote: > In case somebody missed this... > > An overview of various script loaders and features and support and > whatever. > > > https://spreadsheets.google.com/c

[JSMentors] Re: client-side development environment

2011-03-08 Thread James Morrin
I think the auto complete is difficult due to the dynamic typing of javascript. The closest I have found in terms of auto complete is webstorm by jetbrains. The autocomplete / refactoring is pretty good and when it doesnt know for sure it presents you with a list to choose from :) -- To view

[JSMentors] Re: client-side development environment

2011-03-08 Thread DaveC
I tend to use the following via an Ant build script: 1. Closure Compiler (Simple Optimisations) found this to have slightly better compression than YUI also has a Firefox plugin that can unmap the compiled code for debugging 2. YUI Compressor (CSS Minification) 3. CSSEmbed (DataURIs and MHTML for

Re: [JSMentors] Re: Loading .js files dynamically

2011-03-08 Thread Peter van der Zee
In case somebody missed this... An overview of various script loaders and features and support and whatever. https://spreadsheets.google.com/ccc?key=0Aqln2akPWiMIdERkY3J2OXdOUVJDTkNSQ2ZsV3hoWVE - peter -- To view archived discussions from the original JSMentors Mailman list: http://www.mail-a

[JSMentors] Re: Loading .js files dynamically

2011-03-08 Thread DaveC
There's also this one (script loader) I stumbled upon the other day... https://github.com/polvero/script.js On Mar 8, 6:39 am, fernando trasvina wrote: > for what it seems you are in the direction of building an app not a site > if that is the case and average load times get bigger consider loadi