[Rails-spinoffs] Re: Boundary on Draggable/Sortable

2006-11-02 Thread olly
Hi Tom, thank you very much for the hint. I don't have much experience with script.aculo.us yet, but I'm comming from the Java/Java3D corner - and so I was looking for boundary, bounding (like BoundingSphere does for 3D objects in Java) - well I just missed the right name of that function =)

[Rails-spinoffs] Re: div id=debug scriptaculous

2006-11-02 Thread Christophe Porteneuve
Hey Alex, alexD a écrit : TDD, thanks for the info Is there a switch to activate it? It's no feature, so there's nothing to activate. Whenever test code uses it, stuff appears. Other than that, there's nothing to it. -- Christophe Porteneuve aka TDD [EMAIL PROTECTED]

[Rails-spinoffs] Re: Creating regular arrays using Prototype

2006-11-02 Thread Christophe Porteneuve
Hey there! Renaud a écrit : Is there a way to create regular javascript arrays when using Prototype? Nope. Since the prototype is extended, there's no way to create an array w/o those. However, you can create an object that acts as an array (a container with properties, that is), and pass

[Rails-spinoffs] Forcing a dropdown selection?

2006-11-02 Thread Deco Rior
Is there a good way to ensure that the user has selected a value from the drop-down list created by the auto-completer? We have a situation where users are not selecting from the list and the entered value in the input box is not valid. Deco

[Rails-spinoffs] Re: Textarea Submissions through ajax.updater

2006-11-02 Thread BeeRich
Hi there. Why would they return it this way? Does JS provide maps at all? Would be easier to manage that way. Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Ruby on Rails: Spinoffs group. To post to

[Rails-spinoffs] Re: Creating regular arrays using Prototype

2006-11-02 Thread Ryan Gahl
Agreed. Using for property in object with an Array completely forgoes any advantages of even using the Array object. In fact, you might as well just use an Object then. I've said it before, and I'll keep screaming it... don't use an Array like a hash! Use indexes and push(), splice(), etc... or

[Rails-spinoffs] Re: Forcing a dropdown selection?

2006-11-02 Thread Christophe Porteneuve
Hey, Deco Rior a écrit : Is there a good way to ensure that the user has selected a value from the drop-down list created by the auto-completer? Why don't you just validate that the initial, invalid value is gone before submitting your data to the server (whether by vanilla or AJAX ways)?

[Rails-spinoffs] Re: Textarea Submissions through ajax.updater

2006-11-02 Thread Christophe Porteneuve
Hey, BeeRich a écrit : Hi there. Why would they return it this way? Does JS provide maps at all? Would be easier to manage that way. I'm not too sure I get what you mean, why would they return it this way?. Aside from this, JS objects are a map of sorts (associations of property names

[Rails-spinoffs] Re: Forcing a dropdown selection?

2006-11-02 Thread Deco Rior
The action is equivalent to force selection in the Yahoo library It of course needs to be real time. I can add a validation script to ensure that a value was entered, but was kind of suprised I could not find an elegant extension of this in autocompleter Deco On Nov 2, 2006, at 7:20 AM,

[Rails-spinoffs] Re: Forcing a dropdown selection?

2006-11-02 Thread Christophe Porteneuve
Hey there, Deco Rior a écrit : The action is equivalent to force selection in the Yahoo library I have no idea what this does. Can you elaborate? -- Christophe Porteneuve aka TDD [EMAIL PROTECTED] --~--~-~--~~~---~--~~ You received this message because you

[Rails-spinoffs] Re: Forcing a dropdown selection?

2006-11-02 Thread Martin Bialasinski
On 11/2/06, Deco Rior [EMAIL PROTECTED] wrote: was kind of suprised I could not find an elegant extension of this in autocompleter The best explanation: No one needed this so far. Bye, Martin --~--~-~--~~~---~--~~ You received this message because you are

[Rails-spinoffs] Re: Marquee and createElement / Builder.node

2006-11-02 Thread Christophe Porteneuve
Hey there, Kjell Bublitz a écrit : I am about to create some sort of layout-maker and i would like to visualize a marquee which is available. I found that even tho i can create the element with builder node, it is not working. The marquee is not moving. It is in the dom and all the settings

[Rails-spinoffs] Re: OT: redirect e-mail

2006-11-02 Thread Jarkko Laine
On 2.11.2006, at 21.47, Andreas Wahlin wrote: Ehm, I'd rather not have the e-mails to my google account,but rather my .mac account so they're treated like normal e-mail, and I can post from my .mac address. Can this be accomplished? Yes, just subscribe with your .mac email address. You

[Rails-spinoffs] Re: Unendliches Laufband mit script.aculo.us

2006-11-02 Thread Christophe Porteneuve
Hallo! Bitte entschuldigen Sie meinen Deutsch... Tut mir leid, aber die Personen hier nicht sehr gut Deutsch können. Bitte nächsten mal fragen sie auf Englisch. powtac a écrit : Gibt es ein Tutorial oder Beispiel für ein unendliches Laufband, in welchem die links verschwindende Elemente

[Rails-spinoffs] pattern help for custom template - strings

2006-11-02 Thread Ian Tyndall
I've got a small function that I'm developing (maybe you'll recognize it): code: sprintf: function(replacement) { var escapedString = this.replace(/\\/g, ''); var values = $A(arguments); Template.SprintfPattern = /(^|.|\r|\n)(@\(s\)(.*?))/; var sprintfTemplate = new