# Show error in pop up window

**URL:** <https://www.ruby-forum.com/t/show-error-in-pop-up-window/158440>\
**Category:** Ruby\
**Created:** [January 23, 2009, 12:18pm UTC](https://www.ruby-forum.com/t/show-error-in-pop-up-window/158440 "2009-01-23T12:18:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mailtorajuit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Post date:** [January 23, 2009, 12:18pm UTC](https://www.ruby-forum.com/t/show-error-in-pop-up-window/158440/1 "2009-01-23T12:18:49Z")

</div>

Hi all,  
In my project ,there is login page.After entering login details  
checks for login,if success goes to other page. if no userfound it  
displays  
error message by using flas[:notice]. i want to show the messaage in  
alertbox  
or popupwindow.

Please help me how to do this…

Raju

---

<div class="post-metadata">

**Author:** ![mailtorajuit](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed8c4c/32.png) [@mailtorajuit](https://www.ruby-forum.com/u/mailtorajuit)\
**Post date:** [January 23, 2009, 3:34pm UTC](https://www.ruby-forum.com/t/show-error-in-pop-up-window/158440/2 "2009-01-23T15:34:28Z")

</div>

Rajkumar S. wrote:

> In my project ,there is login page.After entering login details  
> checks for login,if success goes to other page. if no userfound it  
> displays  
> error message by using flas[:notice]. i want to show the messaage in  
> alertbox  
> or popupwindow.
> 
> Please help me how to do this…

You might be able to do this using AJAX, where the server sends back  
some Javascript to execute in the browser.

In your message you say absolutely nothing about your environment.  
However, the mention of flas(h)[:notice] suggests you are using Rails.  
In that case, I’d say that the Rails mailing list is an appropriate  
place to ask the question.
