[Proto-Scripty] I want to use autocompleter in an array of input text fields (name[])

2008-12-11 Thread tumba
Hi, I'm trying to have a multiple input text fields with a name name[] so that I will be able to process them as an array with PHP and Insert them in Mysql. But as soon as I use the bracket, the autocompleter stops working. Is there any way to go around it? document.observe('dom:loaded',

[Proto-Scripty] Re: Submit a form using enter

2008-12-11 Thread Rick Waldron
I whipped this together, tested and confirmed: document.observe(dom:loaded, function () { $('login_form').observe('keydown', function (e) { if ( e.keyCode == 13 ) { //event.findElement('form').submit();

[Proto-Scripty] Re: dropOnEmpty:true causing flickering ?

2008-12-11 Thread James McBryan
Looking into the code a bit more, I believe the fix is the correct solution for the onEmptyHover function. As for the reason why there is flickering is because the onEmptyHover was being toggled for Sortables even though there are items in the list. And as an item is moving through a list, the

[Proto-Scripty] Behaviour.js/Event.Observe: how to make it work when it's in an Ajax.Updater-updated element?

2008-12-11 Thread Ian R
Hey all! So. This has come up several times since I've been using Prototype/ Behaviour. I feel like it must have been covered before but I can't find it anywhere and I'm worried that I don't quite know what to search for: Say, for example, I have an unordered list. In my initial page, I

[Proto-Scripty] Re: Scriptaculous 1.8.2 not loading library files

2008-12-11 Thread Alejo
Hi George, Thank you very much for your answer. Yes, it did help me a bit! - The problem is that I don't load those libraries directly, but using the google.load() functionality. So my question was: where does google.load() insert the scripts I call? Thanks a lot! On 10 dic, 14:53, George

[Proto-Scripty] Re: I want to use autocompleter in an array of input text fields (name[])

2008-12-11 Thread ColinFine
On Dec 9, 11:31 pm, tumba [EMAIL PROTECTED] wrote: Hi, I'm trying to have a multiple input text fields with a name name[] so that I will be able to process them as an array with PHP and Insert them in Mysql. But as soon as I use the bracket, the autocompleter stops working. Is there any

[Proto-Scripty] multiple elements with the same id

2008-12-11 Thread Russell
I have a table with 12 rows with an id of row. The following code works great for the first row but not the following rows. How can I make this work without creating both entries 12 times. script type=text/javascript Event.observe(window, 'load', function() { $('row').observe(

[Proto-Scripty] Re: multiple elements with the same id

2008-12-11 Thread Iros
The distinction between id and class is that there should only be one element per page with a particular id but you could have one or more elements with the same class. What you could do is find all the elements that have the class row and then iterate to observe each with the following syntax:

[Proto-Scripty] Creating an InPlaceCalendarEditor problem with Form.Element.Serializers

2008-12-11 Thread Patrick Tulskie
I've been trying to create a series of drop downs that extends the inPlaceEditor class that is used in Scriptaculous and it keeps throwing up on the prototype getValue function. This code was originally for an older version of prototype and scriptaculous and was posted as a rails patch back in