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

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -