Quantcast
Channel: JavascriptKata - Latest Comments
Browsing all 47 articles
Browse latest View live

Re: Do not use the innerHTML property on HTML objects

i need same add new comment code

View Article



Re: How to inherit classes in javascript

Try this simple example http://www.cyberminds.co.uk/bl...

View Article

Re: How to inherit classes in javascript

Here is a simple way to implement inheritance in Javascript:Person = function(id, name, age){    this.id = id;    this.name = name;    this.age = age;    alert('A new person has been...

View Article

Re: How to make sure undefined is not defined

undefined = false; console.log(undefined.toString());//firebug console error "undefined has no properties"(function(undefined) { console.log(typeof undefined); })(); why?

View Article

Re: How to do class functions in javascript (aka static or shared functions)

You could Implement Polymorphism like this in JavaScript: /** This is our Person class */         Person = function (id, name, age) {            this.id = id;            this.name = name;...

View Article


Re: How to execute javascript code directly in your browser

for executing java script we need tomcat server(any server) Is it right?

View Article

Re: How to execute javascript code directly in your browser

 no.

View Article

Re: How to have jQuery and prototype.js in the same project

What if I add a third party library of jquery, they'd be using $ as usual. Conflicts!!

View Article


Re: How to execute javascript code directly in your browser

hi i can't  still open it,  javascript:ajaxpage("ajaxonly.php","contentarea")/;void(0);is it correct?thx

View Article


Re: How to execute javascript code directly in your browser

Thanks!

View Article

Re: How to make a singleton in javascript

Nice "homerule"

View Article

Re: How to write javascript code to fit in lines of 80 chars

"the guy that discovered Ajax" - WRONG

View Article

Re: How to write javascript code to fit in lines of 80 chars

yeah, I made a mistake. He discovered JSON under a rock...

View Article


Re: Alternatives to singletons in javascript

On the other hand, the fact that you can't have classes and private or protected variables makes javascript VERY non-OO. 

View Article

Re: How to use the self with object-oriented javascript and closures

How does the anonymous function have access to the 'self' variable? It's declared in an (other anonymous) function so doesn't that mean it's local and can only be accessed in that?

View Article


Re: How to use the self with object-oriented javascript and closures

It's because of closures : http://www.javascriptkata.com/... Variables are not limited their own method...

View Article

Re: How to use the self with object-oriented javascript and closures

Thanks. It makes sense now!

View Article


Re: Stop Javascript, use Coffeescript

Coffeescript implements almost everything I don't like about Ruby.

View Article

Re: Stop Javascript, use Coffeescript

great!

View Article

Re: Stop Javascript, use Coffeescript

How is some syntactical sugar worth the cost of debugging a program in a language it wasn't written in?

View Article
Browsing all 47 articles
Browse latest View live




Latest Images