开发者

How to generate messagebox on client side

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜