thanks Ryan!!

> I guess the first step is reading up on OOP in javascript...
>
> http://www.webreference.com/js/column79/
> http://www.codeproject.com/aspnet/JsOOP1.asp
>
> Then, check out the definitive prototype.js guide...
>
> http://www.sergiopereira.com/articles/prototype.js.html
>
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Louis
> Walch
> Sent: Friday, February 03, 2006 2:01 PM
> To: [email protected]
> Subject: [Rails-spinoffs] help with syntax
>
> im not a javascript programmer... so be nice.
>
> scriptaclous uses a differnt format for writing functions and code then
> i
> am used to. are there books or tutorials for helping a beginner
> understand
> how to write like this and what everything is?
>
> that said... i was readding this webpage:
> http://particletree.com/features/lightbox-gone-wild/
>
> and had a question about this function:
> initialize: function(ctrl) {
>     this.content = ctrl.href;
>     Event.observe(ctrl, 'click',
> this.activate.bindAsEventListener(this),
> false);
>     ctrl.onclick = function(){return false;};
> },
>
> im totally stumped, this along with most of the prototype/scriptaclous
> functions confuse the crap out of me.
>
> is this.contnet all the href tags on the entire page? and is adding an
> Event.observe to everyone of them? what is ctrl.click, and how does it
> know to use that?
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
> The information transmitted in this electronic mail is intended only for
> the
> person or entity to which it is addressed and may contain confidential,
> proprietary, and/or privileged material.  Any review, retransmission,
> dissemination or other use of, or taking of any action in reliance upon,
> this information by persons or entities other than the intended recipient
> is prohibited. If you received this in error, please contact the sender
> and
> delete the material from all computers.
>
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to