There is a JavaScript error in my rails application!
Posted
by Small Wolf
on Stack Overflow
See other posts from Stack Overflow
or by Small Wolf
Published on 2010-06-08T08:49:29Z
Indexed on
2010/06/08
8:52 UTC
Read the original article
Hit count: 193
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
© Stack Overflow or respective owner