ajax - How to grab the result string of a server side function to update an image src on the web page in rails 3? -
ok, totally new ajax thing... , need started.
basically trying rather simple believe. got select used select topic. each topic have associated in db bunch of images (10 per topic). trying do, when drop-down changed refresh images random 1 taken list corresponding selected topics.
what gather research need call remote_function controller topic selected parameter , execute function new img path , replace old path new 1 on page.
the problem have absolutely no clue how started on ?
i using rails 3.0.3, , default ajax library: prototype.
Comments
Post a Comment