开发者

How to generate messagebox on client side

开发者 https://www.devze.com 2023-01-20 15:43 出处:网络
Hii all, In my Ruby code am able to generate messagebox but i would like to know how to see it at client side ,am running rails application means server is running on my machine and tha messagebox is

Hii all, In my Ruby code am able to generate messagebox but i would like to know how to see it at client side ,am running rails application means server is running on my machine and tha messagebox is al开发者_StackOverflowso generating on my machine but am nor able not abble to see it client side anyone has any idea how to do that in ruby??


Maybe I got your question not right, but isn't it a typically JavaScript-Alert case? ;)

alert("I am a message box with an ok button.");

Or did I get it wrong?


Edit

If you're using Rails 3 at least it's:

javascript_tag "alert('All is good')"
0

精彩评论

暂无评论...
验证码 换一张
取 消