Re: How to inherit classes in javascript
Try this simple example http://www.cyberminds.co.uk/bl...
View ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: How to execute javascript code directly in your browser
for executing java script we need tomcat server(any server) Is it right?
View ArticleRe: 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 ArticleRe: 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 ArticleRe: How to write javascript code to fit in lines of 80 chars
"the guy that discovered Ajax" - WRONG
View ArticleRe: How to write javascript code to fit in lines of 80 chars
yeah, I made a mistake. He discovered JSON under a rock...
View ArticleRe: 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 ArticleRe: 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 ArticleRe: 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 ArticleRe: How to use the self with object-oriented javascript and closures
Thanks. It makes sense now!
View ArticleRe: Stop Javascript, use Coffeescript
Coffeescript implements almost everything I don't like about Ruby.
View ArticleRe: 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