[jQuery] Re: Event code in different .js files

2009-01-19 Thread MorningZ
indeed it is On Jan 19, 3:53 am, Krommenaas wrote: > is this also true of document.ready? > > On Jan 14, 9:24 pm, Ricardo Tomasi wrote: > > > In the old-fashioned you couldn't have more than one event handler: > > > window.onload = function(){ .. } > > > but using jQuery's bind('load', function

[jQuery] Re: Event code in different .js files

2009-01-19 Thread Krommenaas
is this also true of document.ready? On Jan 14, 9:24 pm, Ricardo Tomasi wrote: > In the old-fashioned you couldn't have more than one event handler: > > window.onload = function(){ .. } > > but using jQuery's bind('load', function(){}) you're using the new > standards-based event system, via ad

[jQuery] Re: Event code in different .js files

2009-01-14 Thread Ricardo Tomasi
In the old-fashioned you couldn't have more than one event handler: window.onload = function(){ .. } but using jQuery's bind('load', function(){}) you're using the new standards-based event system, via addEventListener (attachEvent on IE), in which 'onload' is not a property of the window object

[jQuery] Re: Event code in different .js files

2009-01-14 Thread Krommenaas
strange, but I should have checked. thanks!

[jQuery] Re: Event code in different .js files

2009-01-13 Thread MorningZ
"However, I assume if I do this in two different .js files, the second one will replace the first one" and your assumption is not correct < javascript1.js -> $(window).load(function() { alert("Alert in One"); }); <--> < javascript2.js -> $(wi