Forum: Ruby on Rails alert(null)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6cf5e42612d961cca50964d9e9aa93bd?d=identicon&s=25 Mravo (Guest)
on 2007-07-05 23:02
Hello,
sometimes I get this "message" or error:
---------------
try { alert(null); } catch (e) { alert('RJS error:\n\n' + e.toString());
alert('alert(null);'); throw e }.
-----------------------
What does this mean? My app works fine and variables are passed ok. This
time it poped up when I was using form_remote_tag to submit some
selection field values to controller action.

Thanks for your help!
0900e6a4828bd989f96427082c6c74ca?d=identicon&s=25 Mike Garey (random52k)
on 2007-07-05 23:10
(Received via mailing list)
you might be trying to call render :update do .. and updating a dom
element that doesn't exist..

Mike
6cf5e42612d961cca50964d9e9aa93bd?d=identicon&s=25 Mravo (Guest)
on 2007-07-05 23:29
Yes, you're right. I was trying to display a variable that was null. I
inserted some if sentances and things got messed up in the controller.
Anyways, thanks for your effort, I'll remeber this for the future tasks.
cheers!
This topic is locked and can not be replied to.