Re: [Rails-spinoffs] Re: Javascript Namespacing Question

2006-07-20 Thread Brian Feliciano
Thank you all guys! as a developer, im so lucky to be in this list.more power to this list! ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: [Rails-spinoffs] questions about contributing

2006-07-20 Thread Thomas Fuchs
Heya, You might want to check out http://wiki.script.aculo.us/scriptaculous/show/Development Note that while I guess not much will make it into the scriptaculous "core" distribution, I can really imagine adding a plugins directory to it, and distributing various addons with the scriptaculou

Re: [Rails-spinoffs] AOP in Prototype / JS

2006-07-20 Thread nick hemsley
I think dojo has aop features (which are apparently very well done), via its event system (that's what it is called). you can register pre & post funcitons for arbitrary functions. This may be a good place to look, it may be easier to port it from dojo than recreate from scratch. FYI, I dont thin

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Peter Michaux
On 7/20/06, Thomas Fuchs <[EMAIL PROTECTED]> wrote: The sole point of Prototype is to give the programmer a powerful, opinionated toolset, to make programming JavaScript less pain (with some extra special sugar-on-the-top for Ruby devs). How special is this sugar? Below are four randomly se

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Tom Gregory
I feel a bit responsible for kicking off the rather lengthy discussion over the past couple of days.  I don't mean for this post to make it go on for several more.Two different sides and several in the middle have been represented.  Despite the angst some are feeling, I for one feel more informed a

Re: [Rails-spinoffs] Re: Javascript Namespacing Question

2006-07-20 Thread Ryan Gahl
>> The trick is encapsulating the class definition as a whole inside the>> contructor method (using bind() to preserve the lexical scope of the>> containing class), > Both of these actions seem very unfriendly to me. Having to define my> entire object inside the constructor? Appending a bind(this)

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Alex Duffield
Fair enough. __ Alex Duffield . Principal . InControl Solutions . http://www.incontrolsolutions.com  On 20-Jul-06, at 2:50 PM, Peter Michaux wrote:On 7/20/06, Alex Duffield <[EMAIL PROTECTED]> wrote: This is a list for those who

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Brandon Aaron
Also it seems that I completely overlooked where it said, "We've already documented all of prototype and would love to get it in."That sounds like a big deal to me. Seems like every time I turn around someone is complaining about the lack of documentation. How can we help them get it into SVN and p

RE: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Hill, Greg
It looked cool (I installed it and toyed around with it a little), but I can’t imagine having to switch to it whenever I want to work on _javascript_.  Would be better, IMO, to make plugins for existing editors that do the same stuff.  I could use one for Komodo J  As it is, unless I need t

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Brandon Aaron
Has anyone else actually tried out this IDE Aptana (http://www.aptana.com/)? You know ... the reason this thread was started.Looks pretty interesting; however, I'm a TextMate fanatic and ever since have immediately had doubts about other editors. I might try it out later on today if I can find the

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Peter Michaux
On 7/20/06, Alex Duffield <[EMAIL PROTECTED]> wrote: This is a list for those who WANT to use prototype. With Rails in the name of this mailing list, Prototype.js being in Rails svn and Prototype.js's direct integration in Rails core, this is also an appropriate place to discuss the future con

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Alex Duffield
Well said. I am sick of the prototype bashing. This is a list for those who WANT to use prototype. Would those who dont want to use it please leave. Having said that, I also would like to say I think it is vital for prototype tat the lead developers have SOME presence on this list and let us know w

[Rails-spinoffs] Re: Javascript Namespacing Question

2006-07-20 Thread Eric Anderson
Ryan Gahl wrote: The beauty though, Eric, is that you can use prototype to achieve this as well. Of course you can do private properties when using prototype. The support for doing so is provided by closures in the JavaScript language so you can do that with any JavaScript framework. All I wa

[Rails-spinoffs] How to delete pages from the script.aculo.us WIKI?

2006-07-20 Thread Ahmed Mohombe
Hi, The scriptaculous WIKI seems to contain many junk pages. What is the "official" way of deleting these pages from the WIKI? There doesn't seem to be a "delete" function for the simple WIKI author/user. (doing a WIKI export, one can see how many of them are useless). Thanks in advance, Ahmed.

Re: [Rails-spinoffs] Re: Javascript Namespacing Question

2006-07-20 Thread Ryan Gahl
Some who read my code for this may point out that the Object.extend() was unnecessary, that I could have just done "this.publicVariable1 = ..." and "this.publicMethod1 = function(...) {...};", but I like to keep these things together using my initial syntax, which lends itself well to other tasks l

[Rails-spinoffs] questions about contributing

2006-07-20 Thread Leon Torres
Hi there, recently I was doing my own drag and drop UI when I realized I could just join the effort here. I'm also interested in integrating prototype.js and the related UI libraries as a component of a framework that I work with. My question is about how contributions back to the community w

Re: [Rails-spinoffs] Re: Javascript Namespacing Question

2006-07-20 Thread Ryan Gahl
The beauty though, Eric, is that you can use prototype to achieve this as well. People have a habit of putting boxes around things and imposing imaginary constraints.  Look outside the box you've (not you specifically, Eric, that's the general "you") put the powerful prototype.js into and you'll

[Rails-spinoffs] Re: Javascript Namespacing Question

2006-07-20 Thread Eric Anderson
Brian Feliciano wrote: i know their difference coding-wise, but im a bit concerned about speed and performance and efficiency. (as you may have already noticed, im a bit paranoid about performance/speed) One more thing. The class-based OO emulated by prototype will be slightly slower because

[Rails-spinoffs] Re: Javascript Namespacing Question

2006-07-20 Thread Eric Anderson
JavaScript is a prototype-based OO language. Search on Google for the "Self" programming language for more info on this concept since it is the pioneer in this type of OO. Brian Feliciano wrote: is there a difference between: var ObjectName = Class.create(); ObjectName.prototype = { initial

[Rails-spinoffs] Re: Javascript Namespacing Question

2006-07-20 Thread Eric Anderson
Brian Feliciano wrote: while YUI does something like this: var ObjectName = function () { return { propertyOne: propertyValue, methodOne: function (argv1,argv2) { //do something here... } } }(); they both seem to work fine, but are there any difference? performace wise?

Re: [Rails-spinoffs] Javascript Namespacing Question

2006-07-20 Thread Ryan Gahl
Your second example simply implies doSomething is a static method of the ObjectName class (i.e. instantiation is not necessary) and is a perfect testament to how proto accurately and easily allows for traditional OO programming styles... in that case just be aware that the function is executing in

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Ryan Gahl
Base _is_ completely unnecessary since I've demonstrated that proto already provides the means to achieve that functionality in a very clean manner.But more importantly, can you stop perpetuating this thread in a completely non-productive manner? Seriously, you are bringing no value to anyone in th

RE: [Rails-spinoffs] Javascript Namespacing Question

2006-07-20 Thread Bauser, Joseph (Joe)
I believe the only difference between the two is that in the first you're creating a prototyped class, where in the second you're creating a static namespace containing functions. The only extra overhead you'll see is from the call to Class.create(). Cheers, Joe -Original Message- From

Re: [Rails-spinoffs] Javascript Namespacing Question

2006-07-20 Thread Brian Feliciano
wow! this list is hot! :D thanks for the instant replies! i'm starting to love this list. :Dmy last question ( of this thread :D )is there a difference between:var ObjectName = Class.create();ObjectName.prototype = {  initialize: function () {},  doThis: function () {}}var obj = new ObjectName();o

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Peter Michaux
On 7/20/06, Matt Spendlove <[EMAIL PROTECTED]> wrote: They way I read this I don't expect to be seeing much new funcionality. Perhaps it doesn't need it though ? Excerpt : "I don't have a roadmap for Prototype, but version 2.0—the next major release after 1.5—will focus

RE: [Rails-spinoffs] Javascript Namespacing Question

2006-07-20 Thread Bauser, Joseph (Joe)
I personally prefer prototype because of what I believe is a programmer friendly object oriented-ish design. The only time I've really run into performance issues was in dealing with large numbers of Draggables and Droppables.. but that's already been covered at length in previous list topics.

Re: [Rails-spinoffs] Javascript Namespacing Question

2006-07-20 Thread Ryan Gahl
Nope, that should work out just fine, but I would just call that "namespacing" (YUI didn't invent that concept)... :-)On 7/20/06, Brian Feliciano <[EMAIL PROTECTED]> wrote:Anyway, my base is still going to be prototype. But is there any difference/problem if i use the yui namespacing and proceed w

Re: [Rails-spinoffs] Javascript Namespacing Question

2006-07-20 Thread Brian Feliciano
Anyway, my base is still going to be prototype. But is there any difference/problem if i use the yui namespacing and proceed with object notation? something like:var ObjectName = function (){  return {    propertyOne: propertyValue,     methodOne: function () {},    sub: {},  }}();ObjectName.sub.Cl

Re: [Rails-spinoffs] Javascript Namespacing Question

2006-07-20 Thread Ryan Gahl
The only stumbling block I have yet to fall down on in proto/scriptaculous as far as performance goes is when I have a ton of Draggables/Droppables instances on a page at a time. I have engineered my own solution to that problem though and others here have done similar, so if you get there just ask

RE: [Rails-spinoffs] Javascript Namespacing Question

2006-07-20 Thread Hill, Greg
I’d reckon less than half the list are rails developers, so no worries.  If I had to guess, without having concrete numbers, I’d say YUI is likely faster in general.  Procedural programming is usually faster than object-oriented programming.  That said, Prototype is a lot more flexible and

Re: [Rails-spinoffs] Javascript Namespacing Question

2006-07-20 Thread Brian Feliciano
When you say "most likelty end up being very close in performance" are you favoring the yui way or the proto way?i am about to create a js app based on prototype and i am really concerned about speed and performance. (i am almost feel awkward posting this to a rails community, since i'm not user. f

Re: [Rails-spinoffs] Javascript Namespacing Question

2006-07-20 Thread Brandon Aaron
They will most likely end up being very close in performance but I find the prototype/scriptaculous to be more programmer friendly. BrandonOn 7/20/06, Brian Feliciano <[EMAIL PROTECTED]> wrote: Hi guys! i am fairly new to this web2.0 thingie and still developing my _javascript_ skills. i have seen

[Rails-spinoffs] Javascript Namespacing Question

2006-07-20 Thread Brian Feliciano
Hi guys! i am fairly new to this web2.0 thingie and still developing my _javascript_ skills. i have seen the yui and prototype-scriptaculous library and i found both to be compellingly rich.both Prototype and  Scriptaculous declares their respective namespace like this: var ObjectName  = {  propert

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Ryan Gahl
Can I just say what, here? What? That's just a general what to this premise that a new release every X days/months/years is a necessary thing to the success of (what?).Ok, so you used prototype version X.X (doesn't matter, I'm still using 1.4)... and you've built a clean toolkit or componenet set

RE: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Matt Spendlove
They way I read this I don't expect to be seeing much new funcionality. Perhaps it doesn't need it though ? Excerpt : "I don’t have a roadmap for Prototype, but version 2.0—the next major release after 1.5—will focus on polishing what we have now, not on adding new func

Re: [Rails-spinoffs] AOP in Prototype / JS

2006-07-20 Thread Matt Spendlove
lol - fair question ! Aspect Orientated Programming FYI - a couple of JS impls : I need proper system logging and I rather not have to pollute the classes.. Matt Ryan Gahl wrote: Lol, and I apologize in kind for asking this obvious question, what do you mean "Aspects" (and I'm not Go

RE: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Sam
Before I voice my view (from the bottom), let me say I've developed an application which uses prototype.js, script aculo, and the "windows" extension. I've also made use of Event Selectors and the "debug.js" which is offered by the "windows" group. I have an investment beyond academic interest.

Re: [Rails-spinoffs] AOP in Prototype / JS

2006-07-20 Thread Ryan Gahl
Lol, and I apologize in kind for asking this obvious question, what do you mean "Aspects" (and I'm not Googling as we speak, heh).On 7/20/06, Matt Spendlove <[EMAIL PROTECTED]> wrote: Hey folks I am just investigating using Aspects for logging my main _javascript_ "interfaces". I don't be

[Rails-spinoffs] AOP in Prototype / JS

2006-07-20 Thread Matt Spendlove
Hey folks I am just investigating using Aspects for logging my main _javascript_ "interfaces". I don't believe Prototype has any built in capabilities for this but I just thought I'd check and see how people had tackled this before. I am still getting to grips with core JS so apologies if th

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Brandon Aaron
Just let it go man. I'm guessing that the vast majority of people on this list have heard all the arguments against prototype before. It is just one of those libraries that you either love or you love to hate. Your not helping anyone anyone at this point. I love the 'sugar-on-the-top for Ruby devs'

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Peter Michaux
Hi Thomas, On 7/20/06, Thomas Fuchs <[EMAIL PROTECTED]> wrote: "I think Prototype.js is a lost cause by design." So-- then what are you doing on the Prototype/script.aculo.us mailing list? :) This is the Rails spinoffs list. It is the choice of Prototype.js as the default JavaScript library in

[Rails-spinoffs] Re: problem identifying sortables in tree mode

2006-07-20 Thread Javier Martinez
Nobody have found this problem?Please help me with this.2006/7/20, Javier Martinez <[EMAIL PROTECTED]>: I have a sortable with 3 nodes in tree mode-A (id : 10)-B (id : 20)-C (id : 30)At this time, if I make a serialize, I can see: Array ( [0] => 10 [1] => 20 [2] => 30 ), what is correct and

Re: [Rails-spinoffs] some advices

2006-07-20 Thread Fernando
sorry wrong list. Fernando escreveu: Hi all, I'm new to Rails, and I don't know what is all the rails power, so i think that the things that I'm trying to do can be much simpler using some rails features well my problemn is this. I have a view that I render it partial in other view l

[Rails-spinoffs] some advices

2006-07-20 Thread Fernando
Hi all, I'm new to Rails, and I don't know what is all the rails power, so i think that the things that I'm trying to do can be much simpler using some rails features well my problemn is this. I have a view that I render it partial in other view like my main view    my  partial view my

Re: SPAM-LOW: Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Colin Mollenhour
Well there you have it folks! :D Now if only maybe instead of "depending" on Prototype, it could "absorb" it, keeping separate libraries still, of course. Thomas Fuchs wrote: 1) script.aculo.us will always depend on Prototype 2) Yes, the votes don't count :) Best, Thomas

[Rails-spinoffs] Suppress Right-click

2006-07-20 Thread Michael Siebert
Hello, is there a way to suppress the right-click-context menu that works in all browsers? yes i know "dont do that", but i need it because i need to display a context menu myself, and it just sucks to get 2 menus or when you have to left-click for the contextmenu. greets Micha -- Michael Sieber

RE: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Marco M. Jaeger
Hello Thomas, Although, I understand your anger a little - I do also understand the big anger, pain, and frustration of this community due to the lack of responsiveness to user input (ideas, patches, etc.) from Sam. We got to a point where one has to decide either to stay with prototype and like i

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Thomas Fuchs
1) script.aculo.us will always depend on Prototype2) Yes, the votes don't count :)Best,ThomasAm 20.07.2006 um 00:16 schrieb Ryan Gahl:My vote is against removing it, if any votes are being counted here, which I don't think they are.On 7/19/06, Tom Gregory < [EMAIL PROTECTED]> wrote:Sounds like a vo

Re: [Rails-spinoffs] Re: Documenting Prototype...

2006-07-20 Thread Thomas Fuchs
"I think Prototype.js is a lost cause by design." So-- then what are you doing on the Prototype/script.aculo.us mailing list? :) The sole point of Prototype is to give the programmer a powerful, opinionated toolset, to make programming JavaScript less pain (with some extra special sugar-o

Re: [Rails-spinoffs] Scriptaculous + Sortable: onUpdate Not Firing

2006-07-20 Thread Thomas Fuchs
http://wiki.script.aculo.us/scriptaculous/show/FAQ, question 4.3 Best, -Thomas Am 20.07.2006 um 08:04 schrieb Jeremy Clifton: Hello all, I'm using Scriptaculous 1.6.1 on a project I'm developing. My generated HTML (generated by PHP) looks something like this: Singletary, Bob (Preside

[Rails-spinoffs] problem identifying sortables in tree mode

2006-07-20 Thread Javier Martinez
I have a sortable with 3 nodes in tree mode-A (id : 10)-B (id : 20)-C (id : 30)At this time, if I make a serialize, I can see: Array ( [0] => 10 [1] => 20 [2] => 30 ), what is correct and previsible.Then I insert the node B into A, and C into B-A--BCNow, if I make a serializ