This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Javascript inheritance issue. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Javascript inheritance issue." Watch "Javascript inheritance issue." New topic
Author

Javascript inheritance issue.

Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
Ok, I have the following code:



If I return this._id or this._classid in the function tostring(), 'sam' and 'sam's class' get alerted successfully. However, for some reason, this._icontrol is always 'undefined'. I'm not sure what I'm doing wrong. Or maybe what I'm trying to do isn't possible? Just trying to super a DOM element to a parent 'class'.

Thanks,

Justin


You down with OOP? Yeah you know me!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
check this article out: http://www.kevlindev.com/tutorials/javascript/inheritance/inheritance10.htm

Eric
Justin Fox
Ranch Hand

Joined: Jan 24, 2006
Posts: 802
Thanks for the link, it really helped me out!

Justin
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Javascript inheritance issue.
 
Similar Threads
A function working in IE but not in Crome/Firefox
Object refrences
Scope Chain / Closures
Add & Delete Table rows dynamically
How to getParameter value