[Rails-spinoffs] Re: Help needed with conflicting EventObserver

2006-02-07 Thread Kevin Old
Since no one's replied, I've thought of a few specific questions related to the code. On 2/7/06, Kevin Old <[EMAIL PROTECTED]> wrote: > function setMake() { > var make = document.getElementById("make"); > var makere = /ford/; > > // Set the make > for (var i=make.options.length-1;

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

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

2006-02-07 Thread Jerod Venema
Todd, you're correct; the first definition isn't supposed to be there :).-JerodOn 2/7/06, Todd Ross < [EMAIL PROTECTED]> wrote: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 look

[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

[Rails-spinoffs] Objects and Properties

2006-02-07 Thread Jason Hummel
I'm working on a legacy product and introducing prototype to make my life a little easier and I'm running into some problems with the properties being added to some built in objects like Array. The product has a form validator that's used all over that adds fields (and some of the fields propertie

[Rails-spinoffs] Help needed with conflicting EventObserver

2006-02-07 Thread Kevin Old
Hello everyone, I have a page that populates/updates make, model and year select lists via Ajax.Updater and I think that an EventObserver is causing a conflict. Here's what I'm trying to do. I'm using this page as a create and edit page for a car database. If I'm calling the page in edit mode,

RE: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Gregory Hill
> bingo > > how come draggable.id worked without element in there? > No idea. Is draggable a reference to the draggable object or to the DOM element being dragged? I didn't really look at your code; I just figured you meant droppable.element. ___ Ra

RE: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Louis Walch
bingo how come draggable.id worked without element in there? > Do you mean droppable.element.id? > >> -Original Message- >> From: [EMAIL PROTECTED] > [mailto:rails-spinoffs- >> [EMAIL PROTECTED] On Behalf Of Louis Walch >> Sent: Tuesday, February 07, 2006 11:38 AM >> To: rails-spinoffs@

RE: [Rails-spinoffs] Question about Classes.

2006-02-07 Thread Whitcraft, Jon
Thanks Greg, I just figured that out after looking at the auto complete class.   Jon Whitcraft Indianapolis Motor Speedway [EMAIL PROTECTED] Phone: (317) 492-8623 :: Fax: (317) 492-6419   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

RE: [Rails-spinoffs] Question about Classes.

2006-02-07 Thread Gregory Hill
onComplete: this.createArray.bindAsEventListener(this)   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Whitcraft, Jon Sent: Tuesday, February 07, 2006 12:30 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Question about Classes.   I h

[Rails-spinoffs] Question about Classes.

2006-02-07 Thread Whitcraft, Jon
I have the attached class that I’m writing.  The problem that I’m running into is that I can not access the options from the createArray function which get called after the ajax request gets done.  I want to move the values of the xml file to an array and story it in the options variable.  C

RE: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Gregory Hill
Do you mean droppable.element.id? > -Original Message- > From: [EMAIL PROTECTED] [mailto:rails-spinoffs- > [EMAIL PROTECTED] On Behalf Of Louis Walch > Sent: Tuesday, February 07, 2006 11:38 AM > To: rails-spinoffs@lists.rubyonrails.org > Subject: Re: [Rails-spinoffs] ajax.Updater w/ JS co

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Louis Walch
thanks, i misunderstood. droppable.id in the function is coming through as "undefined" it does have an id > > On 7 Feb 2006, at 17:47, Louis Walch wrote: > >> umm... if i remove the function name how does it know which >> function to use? >> >> > > sorry, i meant remove ": function", or ra

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Tom Riley
On 7 Feb 2006, at 17:47, Louis Walch wrote: umm... if i remove the function name how does it know which function to use? sorry, i meant remove ": function", or rather change it to: function dropAction(... Where are you defining the function? From what you've typed, it looks like you'r

Re: [Rails-spinoffs] Thomas Fuchs? Helping with Scriptaculous

2006-02-07 Thread Chris Korhonen
He is usually quite active on this list, though has been quite quiet recently. I know he's in London at the moment for the Future of Web Apps summit tommorrow, aside from that he has probably just been busy with Fluxion and other 'cool stuff', am sure he will return soon. On 2/7/06, Peter Michaux <

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Michael Peters
Louis Walch wrote: > umm... if i remove the function name how does it know which function to use? That's not a function name, it's an attribute name. Unless your putting this function definition in a classes prototype, then you're not really defining it. it should be something like: function d

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Louis Walch
umm... if i remove the function name how does it know which function to use? > > On 7 Feb 2006, at 17:35, Louis Walch wrote: > >> thanks for the help but you were right it should work - i just had >> a typo :) >> >> next issue >> tying to get it to hit a function onDrop, but its not w

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Tom Riley
On 7 Feb 2006, at 17:35, Louis Walch wrote: thanks for the help but you were right it should work - i just had a typo :) next issue tying to get it to hit a function onDrop, but its not working correctly. i was given this way of doing it last week on this board. when i load t

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Louis Walch
thanks for the help but you were right it should work - i just had a typo :) next issue tying to get it to hit a function onDrop, but its not working correctly. i was given this way of doing it last week on this board. when i load the page w/ FF i get "dropAction is not defined" dropA

Re: [Rails-spinoffs] Notify JS updates, oh my

2006-02-07 Thread Greg Militello
Okay, I just hit version 0.8.3 and added a bunch, included a BSD based license (finally).http://thinkof.net/notify/index.htmlI have a question though, and this relates to the API of the library.In order for the script to degrade nicely (and play well with and tags) I needed a way to pass the targ

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Tom Riley
On 7 Feb 2006, at 16:38, Louis Walch wrote: thanks that worked... another related question im also writing Droppables.add with the Ajax.Updater. and the drop area was written when the page was originally loaded (not the ajax.updater area of the page). will it still be droppable? S

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Louis Walch
thanks that worked... another related question im also writing Droppables.add with the Ajax.Updater. and the drop area was written when the page was originally loaded (not the ajax.updater area of the page). will it still be droppable? when i run updater, it writes the dragable items, and th

[Rails-spinoffs] Thomas Fuchs? Helping with Scriptaculous

2006-02-07 Thread Peter Michaux
Hi, I've been doing a lot of rewriting of dragdrop.js. I've covered at least eight open tickets, made multiple selection of draggables, droppables can accept multiple items at a time, added 21 consistently-named callbacks and have reorganized the code. I'm working on adding more things to Sortable

Re: [Rails-spinoffs] onHover: can u explain me this function ?

2006-02-07 Thread Peter Michaux
I've been doing a lot of rewriting of the dragdrop.js code. Maybe it will be accepted or maybe I'll be the only one using it. But it is my first project in JavaScript so a few JavaScript details are a little fuzzy for me. ---

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Tom Riley
Also, be careful about the problem described here: http://wrath.rubyonrails.org/pipermail/rails-spinoffs/2005-December/ 001615.html (which crashes all but the latest firefox, I think). Also, if you surround your script elements with you might have to remove them or you'll get javascript s

Re: [Rails-spinoffs] Notify JS updates, oh my

2006-02-07 Thread Greg Militello
HA! At this point I don't see myself not using prototype... It's just so nice. So no worries. -Greg On Feb 7, 2006, at 10:26 AM, Gregory Hill wrote: I never did like the eval () statement in my code. But quite frankly I had never heard of binding a variable to a function the w

Re: [Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Tom Riley
Pass evalScripts: true in the options hash passed to Ajax.Updater. tom - http://www.smallroomsoftware.com On 7 Feb 2006, at 15:28, Louis Walch wrote: using Ajax.Updater to update a section of a page with a also want to write some javascript into it (because im trying

[Rails-spinoffs] ajax.Updater w/ JS content

2006-02-07 Thread Louis Walch
using Ajax.Updater to update a section of a page with a also want to write some javascript into it (because im trying to make each of the draggable. but the are not being written. is this not possible? ___ Rails-spinoffs mailing list Rails-spinoffs@lis

RE: [Rails-spinoffs] Notify JS updates, oh my

2006-02-07 Thread Gregory Hill
> I never did like the eval () statement in my code. But quite > frankly I had never heard of binding a variable to a function the way > Greg showed me either (thanks BTW). Just a quick note on that; the bind() function is part of prototype.js. It isn't a native javascript function. Just w

Re: [Rails-spinoffs] Notify JS updates, oh my

2006-02-07 Thread Greg Militello
Ryan, I think it was a combination of the evals, and the way I was using Effects. I took the effects out by default, and I just turn the layer on and off. I think it adds to the usability as the popup come immediately, instead of waiting for a while to become visible. I never did like t

RE: [Rails-spinoffs] Notify JS updates, oh my

2006-02-07 Thread Ryan Gahl
Hey!!! Much better! Good job. So what was making it so slow before? The evals? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Greg Militello Sent: Monday, February 06, 2006 9:14 PM To: rails-spinoffs@lists.rubyonrails.org Subject: [Rails-spinoffs] Notify