javascript - Js function not working in RoR view -
in view (loaded partial url, ajax.update), call simple js function:
=javascript_include_tag :defaults #scroller -@other_images.each |img| .thumbnail_wrapper .thumbnail_image =image_tag img.image.url(:thumbnail), :class => 'button', :onclick => "replaceimg(#{img.id});" :javascript setlastid(#{@other_images[0].id}); for reason doesn't work! not calling simple alert... thoughts why?
Comments
Post a Comment