There is a JavaScript error in my rails application!
- by Small Wolf
As the title said, I got a problem! i encountered the "RJS Error:[object error]",the code in my application is
page << "#{hidden_print("#{url_for(:controller => 'tables', :action => 'dispatch', :id => id, :pop => true, :print =>true)}")} "
the method hidden_print is
def hidden_print(url)
"window.parent.headFrame.document.all.iframe_helper.src = '#{url}';"
end