Kangax,

Sorry I hit some key before I'd finished!

I had

function getValue(form) {
var radioName = form.elements[0].name;
var typeValue = form[radioName];
if(typeValue) {
        for(var i=0, n=typeValue.length; n>i; i++) {
                if(typeValue[i].checked) {
                results[divCount] = typeValue[i].value;
                                                         }
                        }
}

which was called from

<input type="button" name="send" disabled="disabled" value="Send"
onClick="getValue(this.form);">

in a <form>

Simply changing getValue to getData enabled the code to run in Firefox
where without this change it would not run.

Cheers,

Geoff



On Jan 14, 11:44 pm, geoffcox <[email protected]> wrote:
> Hello,
>
> I had
>
> function getValue(form) {
> var radioName = form.elements[0].name;
> var typeValue = form[radioName];
> if(typeValue) {
>         for(var i=0, n=typeValue.length; n>i; i++) {
>                 if(typeValue[i].checked) {
>                 results[divCount] = typeValue[i].value;
>                          }
>
> }
>
> On Jan 14, 9:16 pm, kangax <[email protected]> wrote:
>
>
>
> > On Jan 14, 2:02 pm, geoffcox <[email protected]> wrote:
>
> > [...]
>
> > > Looking inside prototype-1.0.6.3.js I can see getvalue all over the
> > > place and presumably that is why the code failed to run in Firefox.
>
> > Just because `getValue` is "all over the place" doesn't really make it
> > source of a conflict. Were you defining `getValue` as a method of an
> > extended element? A minimal failing test case would be helpful.
>
> > > There must be lists of reserved words for prototype and for
> > > scriptaculous? If yes, could someone please point me at them?!
>
> > There's no such list, afaik, but I agree - there should be one
> > (considering a relatively high level of pollution by prototype)
>
> > [...]
>
> > --
> > kangax- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to