Help Needed !

0 views
Skip to first unread message

Siddhartha

unread,
Oct 28, 2009, 9:37:53 AM10/28/09
to Prototype & script.aculo.us
i am a newbee to this prototype thing and i am trying to use a
Class.create() in an example, but i am not able to figure how to use
the classes and their functions. Can anyone here send me a complete
working example, which involves creating a class, writing functions in
that class, subclassing that class, extending the class and calling
all the functions. though there are many examples on the web, i cudnt
find a COMPLETE WORKING example. any help would be deeeeeeply
appreciated

thanks

sid

T.J. Crowder

unread,
Oct 29, 2009, 4:07:05 AM10/29/09
to Prototype & script.aculo.us
Hi,

> ...i cudnt
> find a COMPLETE WORKING example.

The API docs for Class[1] have one (an "Animal" class and a "Snake"
class that derives from it), but ignore the links they have to the
"tutorial on classes and inheritance", it's out of date and misleading
if you're using version 1.6.

[1] http://api.prototypejs.org/language/class.html

HTH,
--
T.J. Crowder
Independent Software Consultant
tj / crowder software / com
www.crowdersoftware.com
Reply all
Reply to author
Forward
0 new messages