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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -