开发者

Using Silverlight with Ruby on Rails?

开发者 https://www.devze.com 2023-02-14 14:15 出处:网络
Could someone po开发者_如何学Cint me in the right direction of putting Silverlight User Controls on my Ruby on Rails application\'s views?Huh, you can interact with RoR from Silverlight by web service

Could someone po开发者_如何学Cint me in the right direction of putting Silverlight User Controls on my Ruby on Rails application's views?


Huh, you can interact with RoR from Silverlight by web services or JS, i think. What you mean 'putting SL user controls on RoR app'? You can include .xap into html page and Silverlight has the ability to use JS on a page where he is placed.


You neet to use IronRuby.

Documentation about using Silverlight with Iron Ruby is here: http://ironruby.net/browser/docs.html


If you would like to have Silverlight application on the page (and this page is written with RoR) then you can simply embedded .xap file into the page - you can do it using object tag or JavaScript (Silverlight.js file)


Here's a quick tutorial - haven't tried it yet, but seems good. http://techblogging.wordpress.com/2008/03/26/using-silverlight-with-rubyonrails/

0

精彩评论

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

关注公众号