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 (President/CEO)
Chatman, Jim (Vice President of Finance/CFO)
...
Sortable.create('admin-list', { onUpdate: function()
On 7/19/06, Ryan Gahl <[EMAIL PROTECTED]> wrote:
No, that is far from clean, much less cleaner than prototype. You mean init
as in like, a consistently named constructor across classes? So if I look at
class y, and class x I can easily see which method is the constructor for
the class, and you me
I use Prototype with PHP and love the OO design and some of the utility
functions but I agree the Enumerables possibly aren't worth the extra
bandwidth and performance hit. Has anyone actually done some
performance tests with this? At this point I've done so much with
Prototype that it would ta
No, that is far from clean, much less cleaner than prototype. You mean init as in like, a consistently named constructor across classes? So if I look at class y, and class x I can easily see which method is the constructor for the class, and you mean to say that's, like, unclean? Are you serious?
J
On 7/19/06, Ryan Gahl <[EMAIL PROTECTED]> wrote:
Protoype is important if only for the ease with which it enables class based
OO programming in js. Yes, we all know... js is a prototyped based OO
language, but using a traditional class approach makes code re-use,
readability, and refactoring (rea
And just to edit: I don't mean "whining" as an insult to anyone... just that there's a general gathering of complaints all pointing toward this singular problem..my brash American comments get me in trouble here so often I'm just turning into a big apologist.
On 7/19/06, Ryan Gahl <[EMAIL PROTE
Protoype is important if only for the ease with which it enables class based OO programming in js. Yes, we all know... js is a prototyped based OO language, but using a traditional class approach makes code re-use, readability, and refactoring (read maintenance) so much easier. I'm guessing the OP
I'm all for keeping prototype alive. I think the integration with RoR is important as well. I absolutely love prototype for the start it gave me. I've been maintaining my own branch where I've applied various patches, added functionality of my own, cleaned up the source and packed it with Dean's pa
On 7/19/06, Todd Ross <[EMAIL PROTECTED]> wrote:
[Prototype.js is] the cleanest, most elegant
JavaScript code base that I've ever laid eyes on.
I respect your right to think that but I certainly feel the other way
on the issue. For me, Prototype.js suffers from being too clever for
it's own go
I've yet to encounter problems. (We only use dragdrop and effects
from scriptaculous.)
If it'll be of use to anyone, I've pasted the bash script I use
below. Be gentle; it was my first-ever bash script.
TAG
#!/bin/bash
#
# SETUP INSTRUCTIONS:
# 1. Compile jsmin.c as found at http://www
Peter Michaux wrote:
> On 7/19/06, Todd Ross <[EMAIL PROTECTED]> wrote:
>
>> but I still believe in Prototype-the-project.
>
> I'm curious why.
I've already eluded to the why. Its the cleanest, most elegant
JavaScript code base that I've ever laid eyes on. My first exposure to
Prototype was wh
> Easy enough to do with jsmin. I have a bash script that will create
> a "minified" version of each js file, which takes about 20% off of
> each file, on average.
This works well? Last I heard, the 'minifiers' broke on prototype
because of the lack of block formatting in various places. If tha
Easy enough to do with jsmin. I have a bash script that will create
a "minified" version of each js file, which takes about 20% off of
each file, on average.
I don't think min versions need to be in SVN, though.
TAG
On Jul 19, 2006, at 4:35 PM, Hill, Greg wrote:
I do like how YUI has
e
> Sounds like a vote to remove the prototype dependency from
> scriptaculous. I'm in favor for all sorts of reasons.
I'm not. Most of the appeal of scriptaculous to me is the prototype
codebase (I use the prototype functions a lot more than the effects).
> A clean separation obviates any the-ow
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 vote to remove the prototype dependency from
scriptaculous. I'm in favor for all sorts of reasons.A clean separation obviates any the-o
Sounds like a vote to remove the prototype dependency from
scriptaculous. I'm in favor for all sorts of reasons.
A clean separation obviates any the-owner-doesn't-participate-anymore-
style discussions. I want to be able to trim the file size by
removing unused functions. I want my develope
On 7/19/06, Todd Ross <[EMAIL PROTECTED]> wrote:
but I still believe in Prototype-the-project.
I'm curious why.
I've been reading different criticisms of Prototype.js on the web for
months and wonder why it is the default JavaScript library for Rails.
Perhaps there weren't many options avalia
well let me explain
List 1 has items that are not sortables
List 1 can recive items from list 2
List 2 can recive items from list 1
List 2 is sortable
jaimz escreveu:
maybe don't include list1 in list1's containment parameter
-jaimz
-Original message-
From: Fernando [EMAIL PR
Going back to the Parenizor debate we had here a few weeks ago (I tried to do a search for that thread on http://www.ruby-forum.com/forum/10 but the search function is currently broken, meh)...
One could cache the old (core) proto class in question into a "base" property of the new class before ex
Hill, Greg wrote:
>> What is the story with Sam? I don't remember seeing a post from him in
>> the last year. Sometimes I wonder if his general absence partly due
>> to the JavaScript community's fervent dislike of his Prototype.js
>> library.
>
> I like his library, I just wish he'd test in IE w
maybe don't include list1 in list1's containment parameter
-jaimz
-Original message-
From: Fernando [EMAIL PROTECTED]
Date: Wed, 19 Jul 2006 16:29:01 -0400
To: rails-spinoffs@lists.rubyonrails.org
Subject: [Spam] [Rails-spinoffs] sortables containment
> Hi,
> I want to use sortables, to pa
Maninder, Singh wrote:
> Your solution works perfect for me (from the first round of testing that I
> have done).
I'm glad to hear that.
> There is just one small issue -
>
> Currently, I have made changes to my prototype file.
> But, this means that tomorrow if new version of prototype comes
>
Hi,
I want to use sortables, to pass some itens from list 1 to list 2,
but I need that list 1 don't let user to sort the items...
how to do it?
tks
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailma
Thank you Siegfired!
-Original Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Siegfried Puchbauer
Sent: Wednesday, July
19, 2006 3:47 AM
To:
rails-spinoffs@lists.rubyonrails.org
Subject: Re: [Rails-spinoffs]
collectTextNodes
Not
tested, but shoul
Never mind. I'm checking to see if the CHECKBOX is
true. Sometimes my brain gets stuck on one aspect of a problem and can't see
that's something else. It's suppose to be $($sChk).checked.
Keith Davis (214)
906-5183
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ryan
You are passing in a string value as the 1st parameter, and then trying to compare it to the bool value true. If you are checking for the existance of the element, either pass in the actual element reference (not the string of the id), or try to get the element reference in the function before or w
Title: Simple Problem, but I can't find it
Here's the code:
Monica Tetrault, LPC
Raphael Thigpen, Psy.D.
Supervised by
Jeff Dersh, Ph.D. - Licensed Psycholo
> What is the story with Sam? I don't remember seeing a post from him in
> the last year. Sometimes I wonder if his general absence partly due
> to the JavaScript community's fervent dislike of his Prototype.js
> library.
I like his library, I just wish he'd test in IE when he makes major
changes
I doubt
that you'll have any luck getting a hold of Sam through us. He isn't
active in the community (rails-spinoffs) and I haven't seen any major
SVN activity for months so he's obviously not doing much with the bug
reports. He's largely absent and no one's handing out commit rights to
spinoffs
Can't seem to figure this scriptaculous out:
I've got some divs set to none that I'd like to have appear on body
load. The div named "image" appears just fine, but the divs named
"cd1", "cd2", and "cd3" won't appear. I'm calling all of the
effect.appear functions through a single function calle
Mandy...Can the changed lines/classes you're talking about be factored out into a separate "prototype-overrides.js" file which you can load into the docuement after prototype.js is loaded, thus overwriting (or
Object.extending) the existing classes with your added functionality, but still allowing
Ok, just a quick follow up. Within the first few seconds of opening up the interface for real, I found out you can drop in other libraries very easily (the announcement that the IDE now supports mochikit, which was on the welcome screen, was mis-leading me to believe that was the only one supported
Sorry for the reply-all, anyone not interested in this thread (aside from the rails-spinoffs list people), please let us know and we will exclude you from further responses (at least I will, heh)As for the IDE, just downloaded the Windows version, all I have to say is... (nothing to say, speechless
Todd,
Your solution works perfect for me (from the first round of testing that I have
done).
There is just one small issue -
Currently, I have made changes to my prototype file.
But, this means that tomorrow if new version of prototype comes out, it's going
to be a pain maintaining it.
What d
I must say I like your approach.
I was looking for something similar for my website a week or so ago and rolled
my own solution which is nowhere near as elegant.
(code at http://www.josephbauser.net/javascripts/application.js example use
at... well the main site. If you do check it out, please
It seems that dev.rubyonrails.org is down at the moment. I think this
is the same bug reported in ticket 5228, which was closed with a
challenge to create a simple demonstration. I'll reopen that ticket
when I can get to the Trak site. Meanwhile, here's a demo.
Brief summary: when evalScrip
Lovely!
Taking a look now.
Thanks Todd.
-Mandy.
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Maninder, Singh wrote:
> Hello Everyone,
>
> Is there any prototype patch available that would enable the following -
>
> 1) Passing a 'timeout' parameter to the ajax.request so that we can timeout
> every request after some seconds.
> Every request could have a different timeout associated.
>
Hello Everyone,
Is there any prototype patch available that would enable the following -
1) Passing a 'timeout' parameter to the ajax.request so that we can timeout
every request after some seconds.
Every request could have a different timeout associated.
2) Addition of onTimeout method where w
Not tested, but should work: (It collects all textnodes, which are childs of elements with the className)Element.collectTextNodesWithClass = function(element, className) {
return $A($(element).childNodes).collect(function(node){
if(node.nodeType == 3){ return Element.hasClass
can we see aworking demo ?On 7/18/06, Athman,Joseph J <[EMAIL PROTECTED]> wrote:
There is a note on the website which says: The following is a Netflixcopycat. Note: Does not work properly in IE properly, as it uses 24bit
pngs, which IE doesn't support (by default:)Because of this I did not use the
41 matches
Mail list logo