[Proto-Scripty] get controls array

2009-07-23 Thread diegoturriaga
I have something like that: PEPE ... ... ... JUAN ... ... ... ... TITO ... ... ... I want to get the array opt[x] using prototype but $('opt[x]') give me only the first instance. I need something like getElementsByName but using prototype :) Sorry for my engli

[Proto-Scripty] Re: get controls array

2009-07-23 Thread diegoturriaga
ot;) but alas there is no space > after it so it fails. > > As an alternative, looking at your code you just do... $$("input > [type=text]") or if your collection requisites are more specific, add > a class to the elements you want to collect and then simply $ > ("

[Proto-Scripty] Re: get controls array

2009-07-25 Thread diegoturriaga
ts a short call to do the same... something like $X('myarray') Well, what I was doing and I finished, so we can close this topic. On 24 jul, 07:11, ColinFine wrote: > On Jul 24, 1:02 am, diegoturriaga wrote: > > > > > Well... first that all thanks for your reply! > &

[Proto-Scripty] STRING.isJSON() bug?

2010-03-10 Thread diegoturriaga
Well (first that all sorry for my english;) When I do: var aux = "aula"; if (aux.isJSON()) { $('msg').value = "ERROR"; } else { $('msg').value = "OK"; } returns ERROR!!! Any Ideas? -- You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.u

[Proto-Scripty] Re: STRING.isJSON() bug?

2010-03-10 Thread diegoturriaga
return (/^[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]*$/).test(str); } On 10 mar, 16:40, diegoturriaga wrote: > Well (first that all sorry for my english;) > When I do: > > var aux = "aula"; > if (aux.isJSON()) { >     $('msg').value = "ERROR";} > &

[Proto-Scripty] Events ON IE Firefox Chrome

2009-06-25 Thread diegoturriaga
First that all sorry for my english... I have wrote this javascript events handlers: // use mode: $('id-control').observe('keyup', enMayusculas); function enMayusculas(evt) { evt.srcElement.value = evt.srcElement.value.toUpperCase(); } // use mode: $('id-control').observe('keyup', enMin

[Proto-Scripty] Re: Object.toJSON problem

2009-06-25 Thread diegoturriaga
First that all sorry for my english :) im not 100% sure but remember that ? not is a valid character... you need to encode your data before submit your JSON I you are using POST method not is obvius but think in GET On 24 jun, 15:04, maalek wrote: > Hi, > > I build webapp with lots use AJAX vi

[Proto-Scripty] Re: Events ON IE Firefox Chrome

2009-06-26 Thread diegoturriaga
> > *How* is it not working?  Which part is giving you trouble?  What > happens?  When do you expect to happen? > -- > T.J. Crowder > tj / crowder software / com > Independent Software Engineer, consulting services available > > On Jun 25, 7:28 pm, diegoturriaga w

[Proto-Scripty] Re: Confused on setValue encoding

2012-03-06 Thread diegoturriaga
first of all: you indicate any encoding in the header of the page? second: the encoding of the files match? if js expected an encoding, but the constant is assigned to these in other encoding... you know what is the problem ;) a bit more but in spanish: se puede indicar la codificación del cha