SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: render :alert?

  1. #1
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    render :alert?

    Is there a render :alert to make a popup box display from the controller? Or anything similiar? Just grasping at straws. I know there has to be a way to do this. Thanks,

    ~TRS

  2. #2
    SitePoint Addict
    Join Date
    Jan 2006
    Posts
    268
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    render :update do |page|
    page.alert "My Message"
    end
    If you give someone a program,
    you will frustrate them for a day;
    if you teach them how to program,
    you will frustrate them for a lifetime.

  3. #3
    SitePoint Member
    Join Date
    Jul 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That does work, but now I get some strange try catch block error displaying in a div that reads:

    try { alert("Invalid Membership Number"); } catch (e) { alert('RJS error:\n\n' + e.toString()); alert('alert(\"Invalid Membership Number\");'); throw e }

    I did have an rjs file but removed it. Thanks,

    ~TRS


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •