[Proto-Scripty] Finding tags inside CDATA section

2009-04-03 Thread marioosh
I'm using javascript to hide images like below: $('mybody').select('img').each(function(elem) { elem.hide(); } How to do this when img tags are insinde CDATA section ? select method didn't found img tags inside CDATA :( --~--~-~--~~~---~--~~ You received this

[Proto-Scripty] Re: how detect change in field value

2009-04-03 Thread Maarten
Hi Miguel, You might want to take a look at Prototype's Form Element Observer, see http://www.prototypejs.org/api/timedObserver/form-element-observer. Good luck, Maarten On 3 apr, 05:27, Miguel Beltran R. yourpa...@gmail.com wrote: Hi list I have the follow code: HTML: form    input

[Proto-Scripty] API Event.preventDefault()

2009-04-03 Thread bernward
I'm confused sometimes about the API. For example: Why do I not find Event.preventDefault() in the API. I find only Event.stop(). Do I look at the wrong place? Bernward --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[Proto-Scripty] Draggable with Sortable

2009-04-03 Thread lun.ashis
Scriptaculous is pretty good scripts to use. I have come across with one problem on draggable and sortable. I am trying to add draggable element on sortable list. While adding the draggable item it automatically appends to the end of the sortable list but I don't want to do that. I want to add

[Proto-Scripty] Re: Template Callback Patch: Hello #{planets[4].getName}

2009-04-03 Thread Jim Morrison
Ignore me... FYI the trick to get this to work is: toTemplateReplacements: function(){} It's not actually documented but it's mentioned in the release notes under Template API Enhancements No id= so I can't anchor but here's the link:

[Proto-Scripty] Re: Associative arrays vs hash

2009-04-03 Thread ColinFine
On Apr 2, 5:27 pm, Walter Lee Davis wa...@wdstudio.com wrote: I know, growing up as I did in PHP, I have always thought that its model of Array() was normal too. But JavaScript is a different, weird beast. Walter On Apr 2, 2009, at 11:39 AM, Diodeus wrote: It just seems that it's a

[Proto-Scripty] Re: having a default of no selection in drop down list

2009-04-03 Thread Jay
discomp Thanks for your reply. The HTML like code is rails but if you look at the bottom of the code you see the javascript I am using. Irrespective of the code tho I was asking if it is possible to have a default selection of none on the list box that is in the scriptaculous Autocompleter. my

[Proto-Scripty] Re: Finding tags inside CDATA section

2009-04-03 Thread ColinFine
On Apr 3, 8:48 am, marioosh marioosh@gmail.com wrote: I'm using javascript to hide images like below: $('mybody').select('img').each(function(elem) { elem.hide(); } How to do this when img tags are insinde CDATA section ? select method didn't found img tags inside CDATA :( I'm

[Proto-Scripty] Re: API Event.preventDefault()

2009-04-03 Thread T.J. Crowder
Hmmm ... I wonder if a table on the wiki, that contained all the attributes and methods of Prototype objects and linked to their definitions in whichever API would be useful ... I think that would be a fantastic idea. I have frequently wanted such a thing -- an API mash-up, if you will. :-)

[Proto-Scripty] Re: API Event.preventDefault()

2009-04-03 Thread ColinFine
On Apr 3, 10:51 am, T.J. Crowder t...@crowdersoftware.com wrote: Hi, Event#preventDefault isn't a Prototype function, it's a standard one:http://www.w3.org/TR/2001/WD-DOM-Level-3-Events-20010823/events.html Prototype does provide emulation of it on browsers that don't provide it

[Proto-Scripty] Re: Draggable with Sortable

2009-04-03 Thread Walter Lee Davis
If you make two Sortable lists, and set their containment to contain each other: containment: ['list_a','list_b'] Then you may drag from one into the other, and the drop will happen where you like within the list. This removes the item from list_a and puts it into list_b, note. There are

[Proto-Scripty] Ajax.Autocompleter text field does not respond to some keys in IE7

2009-04-03 Thread miguellc
Hi everybody, we are using Ajax.Autocompleter with old versions without problems. Now we have version 1.8.2 of scriptaculous and the autocompleter fields does not work properly (always in IE7). When the ajax call is done and the results appear in the div, we press the down key and it does not

[Proto-Scripty] moving columns around in an html table

2009-04-03 Thread arkady
i am wondering how to create an animation that allow users to dynamically move table columns around. Ex. have a table: |1| 3| 4| --- |3 |4 |5| --- if you grab the 2nd column and move it one column left: |3| 1| 4| --- |3 |4 |5| --- has anyone done this with

[Proto-Scripty] Re: having a default of no selection in drop down list

2009-04-03 Thread disccomp
First thing I noticed was the display:none inline style of #autocomplete_choices is going to make any updates hidden. I've never actually used this feature myself, maybe unhiding this div is automatic. If you haven't yet, check out:

[Proto-Scripty] why Ajax.Request not working?

2009-04-03 Thread geoffcox
Hello, I have the following function in which the alert(code_given) does show the correct value but the Ajax.Request does not appear to be called as I get no alert(response). The new Ajax.Request code part and the php file do work in a separate situation so I'm at a loss to know what the

[Proto-Scripty] Re: how detect change in field value

2009-04-03 Thread Miguel Beltran R.
2009/4/3 ColinFine colin.f...@pace.com On Apr 3, 4:27 am, Miguel Beltran R. yourpa...@gmail.com wrote: Hi list I want three thing 1: have a window with a table filled with many options and descriptions: OK 2: fill hide1 field when field1 value has enter manually: OK 3: fill

[Proto-Scripty] Re: how detect change in field value

2009-04-03 Thread Miguel Beltran R.
using fire: document.observe('sic:proyecto',function(evt){ console.log(entro a sic proyecto); }); $('proyecto').observe('change',function(evt{ Element.fire('sic:proyecto'); }); Sorry, I find the error: change Element to document $('proyecto').observe('change' ,function(evt{