Tatva-Artha

meaning of "it"

3 ways to send javascript alerts from rails

without comments

  1. render :update do |page|
      page << "alert('message');"
    end
  2. render :update do |page|
      page.call 'alert', "message"
    end
  3. render :js => "alert('message');"
http://www.tatvartha.com/wp-content/plugins/sociofluid/images/digg_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/reddit_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/stumbleupon_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/delicious_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/google_16.png http://www.tatvartha.com/wp-content/plugins/sociofluid/images/twitter_16.png

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

Written by Sharad

March 6th, 2010 at 3:12 am

Posted in All

Leave a Reply