search for: theme_image_path

Displaying 1 result from an estimated 1 matches for "theme_image_path".

2006 May 26
0
Expanding javascript before sending it
...helper in it. Before the page was sent to the client the rails help was of course expanded. Moving it into a separated .js file, the rails code is, once again of course, no more expanded. function save(id) { var el = document.getElementById(''s''+id); el.src = "<%= theme_image_path(''loading.gif'')%>" new Ajax.Request(''/task/save/''+id, {asynchronous:true, evalScripts:true, onComplete:function(request){eval(request.responseText)}, parameters:Form.serialize(''tr''+id)}); return false; } <%= theme_image_path(...