Forum: Ruby on Rails alert(null)

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Mravo (Guest)
on 2007-07-06 01:02
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!
Mike G. (Guest)
on 2007-07-06 01:10
(Received via mailing list)
you might be trying to call render :update do .. and updating a dom
element that doesn't exist..

Mravo (Guest)
on 2007-07-06 01: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.
This topic is locked and can not be replied to.