Oskar Gewalli's blog articles

0
comment
on 6/18/2009 12:50 AM
As noted in twitter and on IE blog IE8 has a new “developer tools” that is accessible by the key F12. Also they have included: - console.log - console.info - console.warn - console.error - console.assert as can be seen on msdn. When you’re debugging javascript this is really sweet. If you have seen these methods before, then it might be because you’re developing in firebug. IE8 is looking hot. The inclusion of Developer tools in this release of IE, developing modern javascript is easier. Before thi[...]
>> Read the full article
.
0
comment
on 6/16/2009 1:35 PM
I’m writing an app where I have a html-canvas and render items on that canvas. The problem I ran into was that if I added a context menu to both the items and the canvas. The problem was that I kept getting the menu for the canvas and not the items. A little debugging in firefox explained why: I only need to prevent event bubbling in order to to bind layers of html. Looking into it further there is a link on Cory’s page to a different context menu with a more approriate api.
>> Read the full article
.
0
comment
on 4/8/2009 3:17 PM
I’ve come to admire the simplicity and style of jquery. There are some cons to it’s approach of using context (as can be seen as this in the for instance “each”): jQuery("#table tr").each(function(){ jQuery(this).DoStuffPlugin(); }); This wreaks havoc with some object oriented programming techniques: var classSmurf = function(){ this.name = "smurfette"; this.SmurfAround = function(){ alert("Smurf: "+this.name); } }; This is a simplified example that is broken by jquery’s use of context. T[...]
>> Read the full article
.
0
comment
on 4/8/2009 3:17 PM
I’ve come to admire the simplicity and style of jquery. There are some cons to it’s approach of using context (as can be seen as this in the for instance “each”): jQuery("#table tr").each(function(){ jQuery(this).DoStuffPlugin(); }); This wreaks havoc with some object oriented programming techniques: var classSmurf = function(){ this.name = "smurfette"; this.SmurfAround = function(){ alert("Smurf: "+this.name); } }; This is a simplified example that is broken by jquery’s use of context. T[...]
>> Read the full article
.
0
comment
on 4/8/2009 3:17 PM
I’ve come to admire the simplicity and style of jquery. There are some cons to it’s approach of using context (as can be seen as this in the for instance “each”):jQuery(“#table tr”).each(function(){ jQuery(this).DoStuffPlugin();});This wreaks havoc with some object oriented programming techniques:var classSmurf = function(){ this.name = “smurfette”; this.SmurfAround = function(){ alert(“Smurf: “+this.name); }};This is a simplified example that is broken by jquery’s use of context. There is a simple work a[...]
>> Read the full article
.
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper