Re: [Rails-spinoffs] Sortable callback, when dragging starts/stops

2006-08-16 Thread Todd Ross
Ryan Gahl wrote: > Huh? I use gmail now... it's supposed to handle this... > > When you hit reply, you're supposed to type at the top of the message, > that's what is natural (I would never expect to have to scroll to the > bottom > to see someone's reply). When you click in the reply box in gmail

Re: [Rails-spinoffs] Sortable callback, when dragging starts/stops

2006-08-15 Thread Todd Ross
Ryan Gahl wrote: > When I joined the list I had my own etiquette issues which others politely > corrected for me (right Jeremy?)... so don't feel like I'm singling you out > or anything. It's just that from this message I can't see the previous > messages (I'd have to go dig through my deleted item

Re: [Rails-spinoffs] Ajax Timeouts

2006-07-22 Thread Todd Ross
ine with Safari, I'm afraid. Can I trouble you to add a comment to the bug so that others are aware of the problem? Someone might post an alternative patch then as well. http://dev.rubyonrails.org/ticket/3730 Todd Ross ___ Rails-spin

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

2006-07-22 Thread Todd Ross
Peter Michaux wrote: > On 7/19/06, Todd Ross <[EMAIL PROTECTED]> wrote: >> Peter Michaux wrote: >> > On 7/19/06, Todd Ross <[EMAIL PROTECTED]> wrote: >> > >> >> but I still believe in Prototype-the-project. >> > >> > I'm

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

2006-07-19 Thread Todd Ross
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

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

2006-07-19 Thread Todd Ross
you isolated to spinoffs/scriptaculous? If yes, would you be willing to apply community-discussed/approved patches? Is there a specific person associated with the SVN repositories that I should be talking to about getting a developer account? Talking to Sam has been a complete dead end for me so

Re: [Rails-spinoffs] Ajax Timeouts

2006-07-19 Thread Todd Ross
ers / users. If you'd like to see it included, then I'd suggest you add a "me too"/"tested" comment to the bug report. That is, once dev.rubyonrails.org is back on-line. Todd Ross ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Re: [Rails-spinoffs] Ajax Timeouts

2006-07-19 Thread Todd Ross
yonrails.org/ticket/3730 http://www.brainsick.com/prototype/requestTimeout.patch/ I haven't looked at it since February, but I'd imagine it still works; Prototype hasn't changed much. Todd Ross ___ Rails-spinoffs mailing list Rails-spinoffs@lis

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

2006-07-18 Thread Todd Ross
totype and hope that some day it catches his attention. I'll be the first to admit though that it's not a very effective approach. If you want more exposure for your project, publish HTML versions on line and invite rails-spinoffs to take a look. The

Re: Re: [Rails-spinoffs] TextMate Prototype & Scriptaculus Bundle

2006-07-15 Thread Todd Ross
On 7/15/06, Martin Ström <[EMAIL PROTECTED]> wrote: Actuall I'm just used to use double quotes instead. Since no quotes are parsed in JavaScript there aren't any difference. I can change the quotes to single if this is the preferred Prototype way? Using ' versus " in JavaScript is largely a sty

Re: Re: [Rails-spinoffs] Effect.SlideDown/Up() and HTML issues

2006-07-11 Thread Todd Ross
On 7/10/06, Eskil Kvalnes <[EMAIL PROTECTED]> wrote: On 7/11/06, Jon Tirsen <[EMAIL PROTECTED]> wrote: > I've been using a technique where I've had a hidden colspan="x"> (where x = total number of columns). Inside the I > have a that is also hidden (display:none), when I start the > effect I s

Re: [Rails-spinoffs] Re: $F - Is this the correct behaviour

2006-07-08 Thread Todd Ross
On 7/8/06, Michael Peters <[EMAIL PROTECTED]> wrote: Andrew Tetlaw wrote: > I'm sure that is valid in HTML, the value returned by a > select,checkbox or radio is the value attribute or text node if value > is not available. But the difference between what Prototype does and what every other brow

Re: [Rails-spinoffs] Help please-draggable

2006-06-24 Thread Todd Ross
On 6/24/06, Todd Ross <[EMAIL PROTECTED]> wrote: On 6/24/06, Dark Ambient <[EMAIL PROTECTED]> wrote: > http://icanc.com/dnd/formelements.php > > That is the latest From formelements.php: By manually trying to retrieve that file from http://icanc.com/javascript/dragdr

Re: [Rails-spinoffs] Help please-draggable

2006-06-24 Thread Todd Ross
On 6/24/06, Dark Ambient <[EMAIL PROTECTED]> wrote: http://icanc.com/dnd/formelements.php That is the latest From formelements.php: By manually trying to retrieve that file from http://icanc.com/javascript/dragdrop.js: Not Found The requested URL /javascript/dragdrop.js was not found on

Re: [Rails-spinoffs] Help please-draggable

2006-06-24 Thread Todd Ross
On 6/24/06, Dark Ambient <[EMAIL PROTECTED]> wrote: Well (and I know my multiple post are geting to be a pain..sorry) I'm back to getting "Draggable is not defined" . I moved the files, dropped the leading /, and made sure the server had the same paths. Do you have this latest iteration online

Re: [Rails-spinoffs] Ajax in IE 5.5 / Win 98

2006-06-22 Thread Todd Ross
On 6/22/06, Sam <[EMAIL PROTECTED]> wrote: I don't have any idea how to log a bug report so if anyone here would do it that would be fine with me. I'd encourage you to learn. It's good for the soul. And it tastes great. AND it's less filling. http://dev.rubyonrails.org/ Like Gregory said t

Re: [Rails-spinoffs] JSON not auto-evaluated

2006-05-29 Thread Todd Ross
On 5/29/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: you actually *should* quote your property names. For instance, if you use the property name 'class' and it doesn't have quotes around it, Safari will yell at you. Having quotes around the property names is no less correct than not having quo

Re: [Rails-spinoffs] Class.create() Vs Creating Objects

2006-05-21 Thread Todd Ross
On 5/21/06, Maninder, Singh <[EMAIL PROTECTED]> wrote: Not all OOP concepts translate very well to JavaScript, but here's how I treat them. I could do it any of the following ways - var Browser = { this.getName: function() { }, this.getVersion: function() { } }; This is really creati

Re: [Rails-spinoffs] prototype: leak with Element.extend

2006-05-10 Thread Todd Ross
On 5/10/06, nick hemsley <[EMAIL PROTECTED]> wrote: for (property in methods) { for (var property in methods) { ensures that you're working with a locally-scoped property variable. The way it's written, if window.property existed, then you just clobbered it. Todd ___

Re: [Rails-spinoffs] cleanWhitespace and parentNode

2006-04-28 Thread Todd Ross
On 4/28/06, Martin Bialasinski <[EMAIL PROTECTED]> wrote: On 4/28/06, Thomas Fuchs <[EMAIL PROTECTED]> wrote: > Why not write a patch? I froze my Prototype version just prior to the change to $(). Currently, I need stability and this is too much a change in the fundamental workings of the libra

Re: [Rails-spinoffs] merging one array into another

2006-04-24 Thread Todd Ross
On 4/24/06, Martin Bialasinski <[EMAIL PROTECTED]> wrote: > On 4/24/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: > > Is there no better way to merge one array into another than iterating over > > the > > array you wish to append with each() and push()ing the elements on to the > > other array? >

Re: [Rails-spinoffs] document.getElementsByClassName (prototype) andElement.childrenWithClassName (scriptaculous) redundancy?

2006-04-17 Thread Todd Ross
On 4/17/06, Gregory Hill <[EMAIL PROTECTED]> wrote: > Isn't the difference that the scriptaculous one only gets child nodes > from the node you specify, whereas the prototype one gets all in the > entire document? Prototype's document.getElementsByClassName allows you to pass in the parentElement

Re: [Rails-spinoffs] evalScripts in IE

2006-04-16 Thread Todd Ross
On 4/16/06, Martin Bialasinski <[EMAIL PROTECTED]> wrote: > BUT: This is how it works on any browser. If the eval works in one, it > works in any. Therefore I do not think this is the problem, as he just > calls a global function. Probably, the function just fails, so he > should check with the jav

Re: [Rails-spinoffs] Re: Prototype Ajax - How to pass my own paramsto onComplete

2006-04-10 Thread Todd Ross
On 4/10/06, Gregory Hill <[EMAIL PROTECTED]> wrote: > Ah, well, that's good to know then. I'd always wanted to do it this > way, but when I last looked into it, it wasn't yet supported. That was > a while ago, though. Thanks for the heads up. I'm partial to this technique because I think it re

Re: [Rails-spinoffs] Re: Re: Prototype Ajax - How to pass my own params to onComp

2006-04-10 Thread Todd Ross
On 4/10/06, Erin Brewer <[EMAIL PROTECTED]> wrote: > Sorry, i should have clarified, i actually had the params for > NamedActionResponseHandler specified in the opposite order originally, > but the 2nd argument was a undefined object and the first argument when > i looked inside it was the response

Re: [Rails-spinoffs] Re: Prototype Ajax - How to pass my own params to onComplete

2006-04-10 Thread Todd Ross
On 4/10/06, Erin Brewer <[EMAIL PROTECTED]> wrote: > I like the technique you describe here, but when i try to reference > 'theElement' in NamedActionResponseHandler() it is not defined. > > I changed the onComplete def to: > onComplete: NamedActionResponseHandler.bind(this, theElement) > > And ch

[Rails-spinoffs] Re: function onComplete how to overload?

2006-04-06 Thread Todd Ross
Grzesiek Slusarek wrote: > Well that was only definition of the funcion, where it come from? > I want to put param1 in the Ajax.Request object: > var myAjax = new Ajax.Request( > url, > {method: 'get', > parameters: pars, >

Re: [Rails-spinoffs] Help with new EventSelectors in prototype

2006-04-05 Thread Todd Ross
On 4/5/06, Alexander Rebholz <[EMAIL PROTECTED]> wrote: > I can't seem get to work the newly inctroduced EventSelectors of protoype. > I downloaded the latest release via SVN. And included both prototype > and scriptaculous. I don't see any EventSelectors code in prototype or script.aculo.us. [E

Re: [Rails-spinoffs] Event.observe on IE

2006-04-03 Thread Todd Ross
On 4/3/06, Gregory Hill <[EMAIL PROTECTED]> wrote: > IE is loading the page in the 'href'. Not sure there's a way to prevent > that. Return false from the onclick event. Todd ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://l

Re: [Rails-spinoffs] Updated: window dialog script

2006-03-29 Thread Todd Ross
On 3/29/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: > On Wednesday 29 March 2006 12:59, Aaron Meier wrote: > > I'm using this on a secure site, and in IE, when the 'new Dialog' is > > called, it tells me "This site contains both secure and nonsecure items." > > I've tried creating the dialog elem

Re: [Rails-spinoffs] Re: Re: problems with ".this"

2006-03-27 Thread Todd Ross
On 3/27/06, Daniel Herrero <[EMAIL PROTECTED]> wrote: > Now I have another cuestion related to this: I have a class with an object > inside: > > var onewClass = Class.create(); > onewClass.prototype = { > initialize : function() { > this.variable = "fooo"; > }, > myrules : {"

Re: [Rails-spinoffs] [ANN] script.aculo.us 1.6 beta

2006-03-26 Thread Todd Ross
On 3/26/06, Thomas Fuchs <[EMAIL PROTECTED]> wrote: > This version is mostly a refactoring/bugfix release, and marks the > switch over to > Prototype 1.5 (Prototype 1.4.0 is no longer supported). The required > prototype.js > file is included (lib/prototype.js) of course. http://prototype.conio.ne

Re: [Rails-spinoffs] Javascript Code inside an Ajax response

2006-03-21 Thread Todd Ross
On 3/21/06, Guillermo Movia <[EMAIL PROTECTED]> wrote: > ultima2 = function() { > var ultimaNoticia = 677; > $('lastStory').innerHTML = ultimaNoticia; > }; Try window.ultima2 = function() { ... } Todd ___ Rails-spinoffs mailing list Rails-spinoffs@li

Re: [Rails-spinoffs] Re: Re: [prototype] how i send Dynamic form

2006-03-18 Thread Todd Ross
On 3/17/06, Todd Ross <[EMAIL PROTECTED]> wrote: > Swap your and tags. A form isn't a valid descendent of a > table. So, I saw that you updated the code ... array empty array 'client_code' => 'FAME' 'usr_ids' => 'clients_

Re: [Rails-spinoffs] Re: Re: [prototype] how i send Dynamic form

2006-03-17 Thread Todd Ross
On 3/17/06, jaimz murray <[EMAIL PROTECTED]> wrote: > yeah you can check it out now, lol i feel like an idiot, i had put some > JS that relies on php in a .JS file because i forgot the php was in the > JS > > it works now Swap your and tags. A form isn't a valid descendent of a table. Al

Re: Re: [Rails-spinoffs] [prototype] how i send Dynamic form

2006-03-17 Thread Todd Ross
> once your logged in click on "Pick-Up Depot | Add a File" > in the client code box you can try "FA" then choose "FAME" from the > autocomplete. > > if you look at it right away it may be a little funky because i'm > currently working on it Entering Client Code 'FA' and then choosing the first FA

[Rails-spinoffs] Re: RE: Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Todd Ross
Ryan Gahl wrote: > Why are you not using FF > 1.0.7? sheesh, how many versions have been > released since then? How many? Easy! None for Ubuntu. Firefox 1.0.7 is the latest supported release unless you want to jump through hoops and potentially break other packages or install software outside

[Rails-spinoffs] Re: Exception in Javascript console in Firefox 1.0.7

2006-03-17 Thread Todd Ross
Alex Young wrote: > Has anyone else seen this? Yes, I get those from time to time in the JavaScript Console. I'm also running Firefox 1.0.7 on Ubuntu 5.10. They don't seem to have any adverse side effects though; are they breaking something for you? Todd -- Posted via http://www.ruby-forum.

Re: [Rails-spinoffs] ajax exception

2006-03-17 Thread Todd Ross
On 3/17/06, Cosmin Cimpoi <[EMAIL PROTECTED]> wrote: > On one of the ajax.request calls I make something weird happens. In the > debugger I get this output: > === > 10:36:04:796 [DEBUG] FileBrowser.onServiceResult > inResult = success > 10:36:04:812 [DEBUG] FileBrowser.onService

Re: [Spam] Re: [Rails-spinoffs] [prototype] how i send Dynamic form fieldvalues??

2006-03-17 Thread Todd Ross
On 3/16/06, Jaimz <[EMAIL PROTECTED]> wrote: > so everything is there. it's just like the form won't submit elements > that were added to it's structure AFTER the page was rendered. While that might appear to be the case, there's probably another explanation. I see no reason why dynamic form elem

Re: [Rails-spinoffs] [prototype] how i send Dynamic form field values??

2006-03-09 Thread Todd Ross
On 3/9/06, Renso Vargas <[EMAIL PROTECTED]> wrote: > with prototype i fill the dynamicFields DIV with and > tags, but when i submit the form the values of dynamic fields are not send. I'd start by making sure that all of the fields you're adding dynamically, that are meant to be submitted to a

Re: [Rails-spinoffs] Runtime Error

2006-03-09 Thread Todd Ross
On 3/9/06, Thomas Fuchs <[EMAIL PROTECTED]> wrote: > If "record_id" refers to any sort of TABLE, TR, TD and so on element, > this won't work in IE. You need to use table-specific DOM > manipulation commands > in that case. I believe you /can/ use innerHTML on a TD/TH in IE. Another problematic el

Re: [Rails-spinoffs] Minor fix for Ajax.InPlaceEditor

2006-03-08 Thread Todd Ross
On 3/7/06, John Beppu <[EMAIL PROTECTED]> wrote: > controls.js line 471: > > Where it says: > > new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); > > can we change it to: I would encourage you to file a ticket (after searching to see if this item has already been addressed)

Re: [Rails-spinoffs] [Fwd: [PATCH] Allow generic autocompleter (Ajax.Watcher)]

2006-03-02 Thread Todd Ross
On 3/2/06, Robin Haswell <[EMAIL PROTECTED]> wrote: > Yeah it was a typical "get it working and clean it up as you go along" > job. If I re-visit that code any time soon I'll take your suggestions > onboard and submit another patch. Quoth the Robin: "I can find you the patch but it won't make a l

Re: [Rails-spinoffs] bindAsEventListener with parameters

2006-02-27 Thread Todd Ross
On 2/27/06, Martin Bialasinski <[EMAIL PROTECTED]> wrote: > I would like to share a modification to bindAsEventListener() that > might be useful to some of you. It makes it possible to do > > function show(event, number) { > alert(Event.element(event).id + " = " + number); > } > > Event.observe("

Re: [Rails-spinoffs] Disabling anchor clicking in a draggable

2006-02-27 Thread Todd Ross
On 2/27/06, Robin Haswell <[EMAIL PROTECTED]> wrote: > I have an interesting problem - I have some draggable elements (sortable > actually), with links () inside them. I want the user to be able to > click on the link, however if the user drags the element I don't want > the link to get fired. Can

Re: [Rails-spinoffs] get child by class name

2006-02-25 Thread Todd Ross
On 2/24/06, Yehuda Katz <[EMAIL PROTECTED]> wrote: > Or you could do $$('#row td.icon') where row is the id of the tr in > question. Unless a new version of Prototype has been released that I'm not aware of, that just seems like teasing. Plus, the version of $$() in SVN is known to have problems

Re: [Rails-spinoffs] get child by class name

2006-02-24 Thread Todd Ross
On 2/24/06, Louis Walch <[EMAIL PROTECTED]> wrote: > wondering if you have a suggestion for the best way to get child by class > name. > > example would be to target a TR and return a TD with classname of icon in > order to use innerHTML Prototype's getElementsByClassName function allows you to pa

Re: [Rails-spinoffs] question about getElementsByClassName

2006-02-23 Thread Todd Ross
On 2/23/06, Louis Walch <[EMAIL PROTECTED]> wrote: > whoops, sorry > > > function displayPreviewIcon(){ > inputs = getInputsByAttribute('fldtype','filelocation'); > for(i=0; i < inputs.length; i++){ > //Testing >

Re: [Rails-spinoffs] question about getElementsByClassName

2006-02-23 Thread Todd Ross
On 2/23/06, Louis Walch <[EMAIL PROTECTED]> wrote: > the file is being included, it is in the top of my common.js > > i am getting the error before it does anything. could it be that my > common.js is not written in the OO style of js? > > here is the code; And ... how are you calling it? Todd __

Re: [Rails-spinoffs] question about getElementsByClassName

2006-02-23 Thread Todd Ross
On 2/23/06, Louis Walch <[EMAIL PROTECTED]> wrote: > i made a function which was a near duplicate of getElementsByClassName and > saved it as getInputsByAttribute and saved it in an external js file. > > but now i am getting "getInputsByAttribute can not be found" is there > something i need to do

Re: [Rails-spinoffs] reloading fragments of pages

2006-02-23 Thread Todd Ross
On 2/23/06, Tarek Ziadé <[EMAIL PROTECTED]> wrote: > When the dom is reloaded, the drag/drop features reloads Droppable.drops > elements. I think this statement is the heart of your problem. There's nothing active about scriptaculous (where you're getting the Draggables/Droppables from) that wou

Re: [Rails-spinoffs] accordion (outlook bar thingy) help

2006-02-21 Thread Todd Ross
On 2/21/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: > why not just use rico? It's built on prototype, so it should integrate pretty > easily. I had problems with script errors while just browsing their website; it left a really bad impression of Rico. Have you used it? I'm interested in other

Re: [Rails-spinoffs] [Prototype] implementation of bind()?

2006-02-21 Thread Todd Ross
On 2/21/06, Miller, Raul D <[EMAIL PROTECTED]> wrote: > Todd Ross wrote: > > Function.prototype.bind = function() { > > var __method = this, args = $A(arguments), object = args.shift(); > > return function() { > > return __method.apply

Re: [Rails-spinoffs] [Prototype] implementation of bind()?

2006-02-21 Thread Todd Ross
On 2/21/06, Miller, Raul D <[EMAIL PROTECTED]> wrote: > In other words, if a bound function is given the arguments > (This,A,B,C) > the underlying method has 'this' bound to the value of This > and the underlying method gets the arguments > (A,B,C,This,A,B,C) Function.prototype.bind = function

Re: [Rails-spinoffs] Ajax reqest and http status

2006-02-21 Thread Todd Ross
On 2/21/06, Grzesiek Slusarek <[EMAIL PROTECTED]> wrote: > Hi all. I 'm using Ajax request on my site and i need to show some message > wneh AJAX call is running, (sometimes it happen so slow). I find that object > AJAX.RESPOND is very usefull here, but sometimes when i need to do AJAX CALL > my

Re: [Rails-spinoffs] on404 Event

2006-02-21 Thread Todd Ross
On 2/20/06, Mark Renn Caluag <[EMAIL PROTECTED]> wrote: > is it possible to prevent the onSuccess Event after an on404 You shouldn't get an onSuccess after the server returned a 404 error. You /would/ still get the onComplete though. I'd recommend either going through your code again to verify w

Re: [Rails-spinoffs] Help with Script.aculo inPlaceEditor

2006-02-21 Thread Todd Ross
On 2/20/06, Reynier Perez Mira <[EMAIL PROTECTED]> wrote: > new Ajax.InPlaceEditor('fNombre', 'test.php?a=actualizar&f=aDescripcion', > {okText:'Save', cancelText:'Discard', size:25}); # > new Ajax.InPlaceEditor('fDescripcion', 'test.php?a=actualizar&f=aNombre', > {okText:'Save', cancelText:'Di

Re: [Rails-spinoffs] Ajax.Updater and loading new javascript functions.

2006-02-17 Thread Todd Ross
On 2/17/06, Alex Duffield <[EMAIL PROTECTED]> wrote: > I am using the evalScript:true option, and somthing simple like > alert("foobar") gets triggered in my loaded code, but if I try to define a > function and then try to call it like I know you've decided to go another route already, but for wha

[Rails-spinoffs] Re: Ajax.Updater and loading new javascript functions.

2006-02-17 Thread Todd Ross
Alex Duffield wrote: > I would much prefer to have my javascript loaded dynamically with > each different component as needed instead of having to load up > everything when the app is originally loaded. > > I tryed including the JS code directly in the code returned by > Ajax.Updater as well as li

[Rails-spinoffs] Re: Forum Addition?

2006-02-17 Thread Todd Ross
John Batchelor wrote: > I have seriously enjoyed reading and utilizing all of the features, > additions and q/a input from the list. My question is not so much > related to > the actual code, but more along the lines of the "list" we utilize to > communicate. I was wondering if there was an "offic

[Rails-spinoffs] RE: Re: RE: Sortable Tree Addition [PATCH]

2006-02-17 Thread Todd Ross
Ryan Gahl wrote: > How can anything related to a such a small little script library like > prototype and scriptaculous be viewed as a maintenance nightmare? I mean > we're talking about 6, 7 files tops, none of which are any larger than a > few hundred lines. So it takes all of 30 minutes, maybe an

[Rails-spinoffs] Re: RE: Sortable Tree Addition [PATCH]

2006-02-17 Thread Todd Ross
Ryan Gahl wrote: > Anyway, my point was, Sammi offered a great contribution and was replied > to with "...and did you just change the indentation for the fun of it"? That wasn't in relation to my tabs vs spaces critique. It was a changed line that had no functional differences. > I change the i

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Todd Ross
> Prototype is a BSD-licensed package; why would they accept code Bad form to reply to yourself, but I caught this after sending it. Prototype is MIT-licensed. Todd ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyo

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Todd Ross
On 2/17/06, Maninder, Singh <[EMAIL PROTECTED]> wrote: > Remove the "+" and change it to " " (space) > http://www.oriontransfer.co.nz/Sortable List v2.zip That did the trick. Thanks. So, onto the feedback for Sammi: 48,62d47 > /* Copyright Sammi Williams 2006 Released under GPLv2 */ > Object.ke

Re: [Rails-spinoffs] Sortable Tree Addition [PATCH]

2006-02-17 Thread Todd Ross
On 2/17/06, Sammi Williams <[EMAIL PROTECTED]> wrote: > Files modified were dragdrop.js and prototype.js. Unless your modifications to prototype.js are /very/ generic and useful to a wider audience than just people who want to sort trees, then it's not likely to happen. > http://www.oriontransfer

[Rails-spinoffs] Array intersections

2006-02-15 Thread Todd Ross
Hello, I'm wondering if there's a way to do array intersections that I haven't found yet. I've been trying to use Array.without() for this, but it can't compare one Array to another. Is there a way to convert an Array to a list of parameters for a function call (which is what Array.without() is

Re: [Rails-spinoffs] Where do you want patches sending?

2006-02-13 Thread Todd Ross
On 2/13/06, Robin Haswell <[EMAIL PROTECTED]> wrote: > I've sent two patches to this mailing list now with not so much as a > word from the devs. Is this the right place to send them, and if not, > why wasn't it easy for me to find the place on that "bug tracker" ? The bug tracker is at http://dev

Re: [Rails-spinoffs] Not able to see length in another function

2006-02-13 Thread Todd Ross
On 2/12/06, Kevin Old <[EMAIL PROTECTED]> wrote: > Any ideas what could be causing this? There are two pieces of information missing. 1) How is model defined (the HTML / DOM bit). 2) How is setModel being called? Also of interest ... what browser is causing you problems? Do you have a site we

Re: [Rails-spinoffs] Error in prototype.js? / Enumerable.each

2006-02-11 Thread Todd Ross
On 2/11/06, smi <[EMAIL PROTECTED]> wrote: > You're awesome! That fixed my bug, It's working for me now. I know you didn't file the ticket, but I would encourage you to add a comment to the ticket that the patch resolved your problems with the $$() function including what browsers you were able to

Re: [Rails-spinoffs] JSON and scriptaculous

2006-02-10 Thread Todd Ross
On 2/10/06, Kevin Old <[EMAIL PROTECTED]> wrote: > Here's the page: http://kold.homelinux.com/prototype/testajax2.html I was hoping to be able to play with your X-JSON approach because that seems to be what you wanted originally. The latest iteration works for me in Firefox, and I'd imagine will

Re: [Rails-spinoffs] Error in prototype.js? / Enumerable.each

2006-02-10 Thread Todd Ross
On 2/9/06, smi <[EMAIL PROTECTED]> wrote: > I am using the latest version of prototype.js from the SVN, including > the wonderful $$ operator to loop through a number of elements with a > certain classname. In Firefox everything works fine, no JS error, but in > IE I get an error in the .each funct

Re: [Rails-spinoffs] Prototype Inheritance example

2006-02-10 Thread Todd Ross
On 2/10/06, John Osborn <[EMAIL PROTECTED]> wrote: > Todd: The skeleton code I am using to create the base class is in my first > email. Sorry. I was expecting to see MyControls.Base. http://www.brainsick.com/prototype/classinheritance.html There were a couple changes. Like Ryan said, you need

Re: [Rails-spinoffs] Prototype Inheritance example

2006-02-10 Thread Todd Ross
On 2/10/06, John Osborn <[EMAIL PROTECTED]> wrote: > Thank you for the quick response. I tried what you suggested and still no > luck. I also found in scriptaculous.js another example of inheritance that > might also work: > > Autocompleter.Local = Class.create(); > Autocompleter.Local.prototype =

Re: [Rails-spinoffs] Length of parameters in Autocompleter.Local()

2006-02-10 Thread Todd Ross
On 2/10/06, Sebastian Kurt <[EMAIL PROTECTED]> wrote: > there are no ' in $rezept_vorgabe[$i]. i add the in the loop(PHP), see > for ($i=0;$i<$ende;$i++) { > echo "'".$region_vorgabe[$i]."'"; > } You are mistaken. 'Costa Rica', 'Cote d'Ivoire', 'Daenemark' d'Ivoir

Re: [Rails-spinoffs] Element.observe () binding

2006-02-10 Thread Todd Ross
On 2/10/06, Greg Militello <[EMAIL PROTECTED]> wrote: > You will notice former code had the hardcoded string 'highlightHover', but > the new code get the value of that class via the class options. Yup. Looks good. An option that doesn't do anything doesn't sound like a very good option. :) > C

Re: [Rails-spinoffs] JSON and scriptaculous

2006-02-10 Thread Todd Ross
On 2/10/06, Kevin Old <[EMAIL PROTECTED]> wrote: > I'm using prototype 1.4.0 final. > > Any help is greatly appreciated! I'd be happy to look at a live website. Todd ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyo

Re: [Rails-spinoffs] Element.observe () binding

2006-02-10 Thread Todd Ross
On 2/9/06, Jerod Venema <[EMAIL PROTECTED]> wrote: > And another reply-to-self...make that: > > Event.observe(el, 'click', (function(event) { > Element.addClassName(Event.element(event), 'myClass'); > ); ... and you're missing a ')', or I could argue that you have one '(' too many. Todd _

Re: [Rails-spinoffs] Element.observe () binding

2006-02-10 Thread Todd Ross
On 2/9/06, Jeremy Kitchen <[EMAIL PROTECTED]> wrote: > as for this, I believe Event.observe handles finding the proper event object > for you and passes that to your function. This is what I've experienced > anyways :) Event.observe() does nothing to smooth out passing the event in as a parameter

Re: [Rails-spinoffs] Stopping an observe event

2006-02-10 Thread Todd Ross
On 2/9/06, Deco Rior <[EMAIL PROTECTED]> wrote: > If I want to stop observing a div Is this the format? > > Event.stopObserving($(''mydiv'),'click'); The stopObserving function expects you to pass the handler(/observer) in as well. Both detechEvent (IE) and removeEventListener (W3C) require it.

Re: [Rails-spinoffs] Element.observe () binding

2006-02-09 Thread Todd Ross
On 2/9/06, Todd Ross <[EMAIL PROTECTED]> wrote: > Event.observe(el, 'click', function(event) { > event = event || window.event; > var element = Event.element(event); > Element.addClassName(element, 'myClass'); > }); > > I'm not sure i

Re: [Rails-spinoffs] Element.observe () binding

2006-02-09 Thread Todd Ross
On 2/9/06, Greg Militello <[EMAIL PROTECTED]> wrote: > Hey all, > I working on a project, but I am not sure I can do what I want to do. The > following works beautifully: > > Event.observe(el, 'click', function () { this.className += " myClass"; > return false; }); > > I have also tried doing th

Re: [Rails-spinoffs] Length of parameters in Autocompleter.Local()

2006-02-09 Thread Todd Ross
On 2/9/06, Sebastian Kurt <[EMAIL PROTECTED]> wrote: > Hi, > I'm using PHP to fill my parameterlist for Autocompleter.Local as > shown in the example > (http://wiki.script.aculo.us/scriptaculous/show/Autocompleter.Local). > > > new Autocompleter.Local('recipeNameAlternative', 'rezept_list', [ >

Re: [Rails-spinoffs] Autocompleter Request depends on other field

2006-02-09 Thread Todd Ross
On 2/9/06, Ed C. <[EMAIL PROTECTED]> wrote: > No, that's what the $F() does ;) Sorry! I read that as just $('username'). I wasn't paying attention (note to self: don't catch up on e-mail while eating dinner). Todd ___ Rails-spinoffs mailing list Rails

Re: [Rails-spinoffs] Autocompleter Request depends on other field

2006-02-09 Thread Todd Ross
On 2/9/06, Ed C. <[EMAIL PROTECTED]> wrote: > (I tried adding "parameters: $F('username')" to the Autocompleter's options, > but, that grabs the initial username value (which is blank), not the current > value.) Does Form.Element.getValue('username') work any better? Todd

Re: [Rails-spinoffs] cancel fade effect

2006-02-09 Thread Todd Ross
On 2/9/06, Marco M. Jaeger <[EMAIL PROTECTED]> wrote: > I was wondering whether it's possible to pass some arguments to the > effect.cancel() – e.g. when canceling fading, I think the opacity should be > reset to the default value or 1. Just browsing through the script.aculo.us code, I think the a

Re: [Rails-spinoffs] InPlaceEditor - IMG for OK / Cancel?

2006-02-09 Thread Todd Ross
On 2/9/06, Robin Haswell <[EMAIL PROTECTED]> wrote: > How did you create that patch? I can't get `diff` to make patches which > include the preceeding and succeeding lines, like cvs diff does. I used svn diff, but if that's not an option, you want a 'unified diff' ... diff -u Some diff programs (

Re: [Rails-spinoffs] InPlaceEditor - IMG for OK / Cancel?

2006-02-08 Thread Todd Ross
On 2/8/06, Todd Ross <[EMAIL PROTECTED]> wrote: > Do either of you have a sample (live site) using InPlaceEditor? I've > never used it and I don't see a demo on http://script.aculo.us/. Nevermind. I found that the documentation of InPlaceEditor had samples included. That

Re: [Rails-spinoffs] InPlaceEditor - IMG for OK / Cancel?

2006-02-08 Thread Todd Ross
Do either of you have a sample (live site) using InPlaceEditor? I've never used it and I don't see a demo on http://script.aculo.us/. Todd ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo

[Rails-spinoffs] Re: Objects and Properties

2006-02-08 Thread Todd Ross
Jason Hummel wrote: > /* * */ > fields = new Array(); > fields[pFieldName] = new Field(pFieldName, name); > /* * */ > > Later on when it's validating this field it does something like this: > > /* * */ > for(var currentField in fields) { > if(

Re: [Rails-spinoffs] JSON and scriptaculous

2006-02-08 Thread Todd Ross
On 2/8/06, Deco Rior <[EMAIL PROTECTED]> wrote: > So the data is returned in an object that can be handled rather than use > strain response.text? > > > Is there a library that allows JSON data object manipulation ? The callback function is no longer working with JSON { first_name: 'Todd', la

Re: [Rails-spinoffs] Autocomplete and Firefox

2006-02-08 Thread Todd Ross
On 2/8/06, Richard Thomas <[EMAIL PROTECTED]> wrote: > here is the html, the last was test data, I started going through the > autocomplete bit by bit trying to figure out exactly where it puts at in > this case, Its after the new Ajax.Request in the getUpdatedChoices > function. If I disable that

Re: [Rails-spinoffs] Prototype: Position.clone()

2006-02-07 Thread Todd Ross
On 2/7/06, Jerod Venema <[EMAIL PROTECTED]> wrote: > Todd, you're correct; the first definition isn't supposed to be there :). Thanks for the confirmation. http://dev.rubyonrails.org/ticket/3764 ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyo

[Rails-spinoffs] Prototype: Position.clone()

2006-02-07 Thread Todd Ross
Does the duplicate clone method of Position serve a subtle purpose that I don't understand? I feel kind of foolish even asking, but ... I just don't get it. I've been looking at this for a couple days now and as far as I can tell, the first definition is useless as it gets overlaid by the second