Hi,

On Mar 9, 8:53 am, Webhopper <[email protected]> wrote:
> I create a small form-site for booking events.
> After select an event, Ajax.Updater should update the ammount-field.
> Site :http://www.lab.krueger-de.org/sam/default_ie.asp
>
> IE works correct, but Firefox, Chrome and ... dosn't update the second
> select.
>
> Is here a bug in my source or a crossbrowser problem from prototype ?
>
> (i have fix it temorary with json. see 
> :http://www.lab.krueger-de.org/sam/default.asp)

It's a bug is in your code; it works in IE because of a complementary
bug in IE. :-)

Your `onchange` handler is using `$F('event')` to get the value of the
event. `$F` requires the *ID*, not name, of the field to get the value
from.[1][2] Your field doesn't have an `id`, just a `name`.

It works on IE because IE is confused about namespaces.[3]

[1] http://api.prototypejs.org/dom/dollar-F/
[2] http://api.prototypejs.org/dom/Form/Element/getValue/
[3] 
http://blog.niftysnippets.org/2010/03/by-any-other-name-would-smell-as-sweet.html

HTH,
--
T.J. Crowder
Independent Software Engineer
tj / crowder software / com
www / crowder software / com

-- 
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