hi guys,

 Consider this scenario in relation to a blog posting application.

 - a form has been loaded for a user to create a new blog entry
 - attributes are: title, content, category and sub-category

  -user goes ahead and fills in text to the title and content
attributes
  - user selects an option from the drop down (select) box
representing the 'category' attribute. Possible values are:
   "politics", "finance" and "entertainment".
  - upon selecting a category value, the "sub-category" attribute's
drop down (select) should be populated.

  For example, if a user selects "politics", the sub-categories that
can be selected  are: "US,AU,NZ" whilst when "finance" is selected,
the sub-categories that can be selected are: "mining", "bonds" and
"interest rates" and when "entertainment" is selected as a category,
the sub-categories that can be selected are: "sports", "music" and
"theatre".


 I know that the scenario above would have Ajax as its' solution.
Roughly, I figure it would be the case that the onChange javascript
attribute is to be used on the category select box. When the value
changes, an Ajax request is made to the necessary controller and the
controller will return the sub-category values of the selected
category.

Has anyone got a link to a good tute I can look at? I read the rails
books i have but I can't find anything similar to this.

Thank you

--~--~---------~--~----~------------~-------~--~----~
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 [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-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to