[Rails-spinoffs] Scriptaculous and DWR

2005-12-07 Thread rajag
Hi, I am also stuck up with DWR and Scriptaculous issues. So far any solution for this. please let me know if you have one regards begin:vcard fn:Raja Gnanavelu n:Gnanavelu;Raja org:Savvion India Limited;Product Development adr;dom:;;;Mumbai email;internet:[EMAIL PROTECTED] tel;cell:0989264

Re: [Rails-spinoffs] InPlaceEditor update of page contents ?

2005-12-07 Thread John Butler
Or you can accomplish the one call my stuffing in extra information into the response header. This information will be ignored by the autocomplete and everything else in Prototype and Scriptaculous (leaving it wide open to play with). In Ruby on Rails you can accomplish this by doing:

[Rails-spinoffs] Prototype.js Hash Methods

2005-12-07 Thread Maninder, Singh
Hi, Has anyone seen any documentation on the Hash Object defined in the prototype library? To be precise the following methods - 1. keys 2. values 3. toQueryString 4. inspect 5. Merge I am trying to play around with them and have come up with the following examples - var h= $H({name: "jo

Re: [Rails-spinoffs] InPlaceEditor update of page contents ?

2005-12-07 Thread Nicolas
Ok, I did'nt understand what you wanted to do.You may have to code your own control here (based on inplaceeditor if you want) that pass more values to the ajax call, and receive more than one answser (using json for example). That's not very difficult, but it's definitly not out of the box.RegardsN

RE: [Rails-spinoffs] AutoCompleter afterUpdateElement

2005-12-07 Thread Daniel Elmore
Yes that did it! Thanks for your time _Rob_ :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Wills Sent: Thursday, December 08, 2005 12:45 AM To: rails-spinoffs@lists.rubyonrails.org Subject: Re: [Rails-spinoffs] AutoCompleter afterUpdateElement

Re: [Rails-spinoffs] AutoCompleter afterUpdateElement

2005-12-07 Thread Rob Wills
On 08/12/2005, at 5:26 PM, Daniel Elmore wrote: Thank you Ron, that helps a lot! Rob :) However I am experiencing a problem. I am getting a JS error "element is not defined". Also the afterupdateelement is running directly when the page loads, maybe that's the cause of the problem. ne

RE: [Rails-spinoffs] AutoCompleter afterUpdateElement

2005-12-07 Thread Daniel Elmore
Thank you Ron, that helps a lot! However I am experiencing a problem. I am getting a JS error "element is not defined". Also the afterupdateelement is running directly when the page loads, maybe that's the cause of the problem. Here is my autocomplete script. new Ajax.Autocompleter('contact_na

Re: [Rails-spinoffs] AutoCompleter afterUpdateElement

2005-12-07 Thread Rob Wills
On 08/12/2005, at 4:38 PM, Daniel Elmore wrote: Any ideas how I can submit say, a person ID instead of the person's name on an autocompleter input field? Surely this is a common need. It is... and it's in the documentation (although it's not obvious how to achieve it) Use an `afterUpda

[Rails-spinoffs] AutoCompleter afterUpdateElement

2005-12-07 Thread Daniel Elmore
Any ideas how I can submit say, a person ID instead of the person's name on an autocompleter input field? Surely this is a common need. Thanks! Daniel ___ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mail

Re: [Rails-spinoffs] Choppiness in FF v1.5

2005-12-07 Thread [EMAIL PROTECTED]
Interesting. I did see some menu expand choppiness after the first drag (wasn't smooth, but wasn't too bad), but if I drag again it goes away. (FF1.5 on WinXP). --- Jerod Venema <[EMAIL PROTECTED]> wrote: > Hey all, > > I've got an interesting one for anyone who's up for > a challenge. > Es

[Rails-spinoffs] Choppiness in FF v1.5

2005-12-07 Thread Jerod Venema
Hey all, I've got an interesting one for anyone who's up for a challenge. Essentially, I have a very choppy effect, that almost looks like timeouts are overloaded or interfering or something, that only occurs when sortables are on the same page as "standard" effects. Here's what I'm doing:

[Rails-spinoffs] bounce effect

2005-12-07 Thread Trevor Squires
Hi, I was wondering if anyone has seen (or completed) an effect to make something 'bounce' like icons do in the OS X dock when you launch them? Something that looks like there's a bit of gravitational behavior to it? Thanks, Trevor Trevor Squires http://somethinglearned.com _

Re: [Rails-spinoffs] Addressing a class, rather than an id?

2005-12-07 Thread Raymond Brigleb
On Dec 7, 2005, at 2:14 PM, [EMAIL PROTECTED] wrote: If I understand your question right, take a look at the utils.js in Scriptaculous. It provides a set of functions for handling CSS classes under the Element.Class "namespace". E.g. Element.Class.add(element, "someclass") Element.Class.has,

Re: [Rails-spinoffs] update_element_function fail gracefully?

2005-12-07 Thread Douglas Forrest
Probably not.  The way it is now is probably the way that most users would expect to be and you have complete control over the error handling... Doug Tom Davies wrote: Thanks. That sounds like a reasonable solution. My _javascript_ skills are apparently a bit rusty :) Would you think th

Re: [Rails-spinoffs] Addressing a class, rather than an id?

2005-12-07 Thread sam
Quoting Raymond Brigleb <[EMAIL PROTECTED]>: So my question is: am I barking up the wrong tree? Is there an easy way to address CSS properties of a class of objects on a page, or do I need to loop through them individually somehow? Has anyone tackled this one? If I understand your ques

Re: [Rails-spinoffs] InPlaceEditor update of page contents ?

2005-12-07 Thread Francois Beausoleil
Hello Nicolas, 2005/12/7, Nicolas <[EMAIL PROTECTED]>: > You can pass an onComplete function in options of your control. > By default, I think it does something like : > > new Effect.Highlight(element, {startcolor: this.options.highlightcolor}); Thanks, but how does that help me ? In onComplete,

Re: [Rails-spinoffs] InPlaceEditor update of page contents ?

2005-12-07 Thread Nicolas
You can pass an onComplete function in options of your control.By default, I think it does something like :new Effect.Highlight(element, {startcolor: this.options.highlightcolor});Regards,NicolasOn 12/7/05, Francois Beausoleil <[EMAIL PROTECTED]> wrote: Hi all !InPlaceEditor refreshes only the el

[Rails-spinoffs] InPlaceEditor update of page contents ?

2005-12-07 Thread Francois Beausoleil
Hi all ! InPlaceEditor refreshes only the element that was updated. Is there any way to make it update tons of other stuff ? I have a table where changing a value in it causes changes in most other cells (weight to percentage to money). Thanks for any help ! -- François Beausoleil http://blog.t

[Rails-spinoffs] Addressing a class, rather than an id?

2005-12-07 Thread Raymond Brigleb
Good day, I'm trying to use the slider control to resize a pile of images on a web page. Clever, huh. Bet cha didn't think of that one!!! :) But seriously. It seems I want to address a class, rather than the individual id's of the images. At this point, I'm getting some results with somet

[Rails-spinoffs] ff 1.5 / xml status problem

2005-12-07 Thread Rahul Bhargava
Hi all,   Are other people having the ff 1.5 problem with Ajax.Request.responseIsSuccess?  Didn’t see any emails fly by on this so I thought I’d ask.   Firefox is crashing on me when inside of that method due to the attempt to access this.transport.status.  Apparently it doesn’t like do

Re: [Rails-spinoffs] update_element_function fail gracefully?

2005-12-07 Thread Tom Davies
Thanks. That sounds like a reasonable solution. My javascript skills are apparently a bit rusty :) Would you think this behavior would be a good feature for the update_element_function to perform? Tom On 12/6/05, Douglas Forrest <[EMAIL PROTECTED]> wrote: > Bracket it with a try..catch block a

[Rails-spinoffs] Re: Adding sortables dynamically

2005-12-07 Thread victor jalencas
Well, for the record, I was able to solve this problem. Turned out to be a scoping issue. Thanks to all who wrote Victor On 12/5/05, victor jalencas <[EMAIL PROTECTED]> wrote: [SNIP] > Now, however, I'm noticing that when I drop the element into the > container, it just sits there grayed out (i.e