I've run into an interesting problem with matching and Element.down.
I've put together a sample of the problem located at:

http://www.ic3dinc.com/form_sample.html

The sample uses Prototype 1.6.0_rc0 and I have had the exact same
result with 1.5.1.1.

This page has a hidden div (schedule_event_contents) that gets added
to each form by a javascript link using Insertion.Bottom. Then, a
function (showtype()) is run on the newly inserted div that gets the
value of a Select element, and hides/shows divs within that form
appropriately. When a particular form element (Action) is changed,
this showtype() function is called again.

In Firefox, elements can be added and changed with no problems. In
Internet Explorer 7, it appears that Element.down() is matching the
form element's name instead of the div's class (although this is just
a guess).

If anyone can offer some insight as to what is going on here, I would
appreciate it.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" 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/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to