Sha256: 6c50ad00b04235c127d13adc1b4a162e597378248b5a8dcd87f1136f8d587dea

Contents?: true

Size: 578 Bytes

Versions: 86

Compression:

Stored size: 578 Bytes

Contents

#This files makes the framework able to receive calls from the Rhodes framework from RhoMobile.
class KnjController < Rho::RhoController
  #GET /Server
  def index
    render
  end
  
  def html_links
    System.open_url(@params["url"])
  end
	
  def callback
    block = $rhodes.callbacks(@params["callback_id"])
    block.call(:params => @params)
  end
  
  def youtube_embed
		@iframe_height = System.get_property("screen_height").to_i - 40
		render :file => "Knj/rhodes/youtube_embed.erb"
  end
  
  def youtube_open
		render :file => "Knj/rhodes/youtube_open.erb"
  end
end

Version data entries

86 entries across 86 versions & 1 rubygems

Version Path
knjrbfw-0.0.116 lib/knj/knj_controller.rb
knjrbfw-0.0.115 lib/knj/knj_controller.rb
knjrbfw-0.0.114 lib/knj/knj_controller.rb
knjrbfw-0.0.113 lib/knj/knj_controller.rb
knjrbfw-0.0.111 lib/knj/knj_controller.rb
knjrbfw-0.0.110 lib/knj/knj_controller.rb
knjrbfw-0.0.109 lib/knj/knj_controller.rb
knjrbfw-0.0.108 lib/knj/knj_controller.rb
knjrbfw-0.0.107 lib/knj/knj_controller.rb
knjrbfw-0.0.105 lib/knj/knj_controller.rb
knjrbfw-0.0.104 lib/knj/knj_controller.rb
knjrbfw-0.0.103 lib/knj/knj_controller.rb
knjrbfw-0.0.102 lib/knj/knj_controller.rb
knjrbfw-0.0.101 lib/knj/knj_controller.rb
knjrbfw-0.0.100 lib/knj/knj_controller.rb
knjrbfw-0.0.99 lib/knj/knj_controller.rb
knjrbfw-0.0.98 lib/knj/knj_controller.rb
knjrbfw-0.0.97 lib/knj/knj_controller.rb
knjrbfw-0.0.96 lib/knj/knj_controller.rb
knjrbfw-0.0.95 lib/knj/knj_controller.rb