Re: One question about Dynamic Select Menus

Daniel
Sun, 28 Dec 2008 10:16:24 -0000

Hey, Eric
Thank you very much for help.
I checked my codes again, yes I made a typo here, it should be
"dynamic_categories" here
And now when I visit app/views/javascripts/dynamic_categories.js.erb I
can get the array

But, question comes again :-(

I can get category and subcategory list in my item/new view
But, when I change the value of category the value of subcategory
doesn''t change!

I checked with web inspector, I got this error message"TypeError:
Value undefined (result of expression document.observe) is not
object."
It seems my result of document.observe is not correct?

How can I fix it?

On Dec 26, 8:01 pm, Eric
<ericgh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> > Showing app/views/javascripts/dymanic_categories.js.erb where line #3
> > raised:
>
> "dymanic"?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com