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.49 lib/knj/knj_controller.rb
knjrbfw-0.0.48 lib/knj/knj_controller.rb
knjrbfw-0.0.47 lib/knj/knj_controller.rb
knjrbfw-0.0.46 lib/knj/knj_controller.rb
knjrbfw-0.0.45 lib/knj/knj_controller.rb
knjrbfw-0.0.44 lib/knj/knj_controller.rb
knjrbfw-0.0.43 lib/knj/knj_controller.rb
knjrbfw-0.0.42 lib/knj/knj_controller.rb
knjrbfw-0.0.41 lib/knj/knj_controller.rb
knjrbfw-0.0.40 lib/knj/knj_controller.rb
knjrbfw-0.0.39 lib/knj/knj_controller.rb
knjrbfw-0.0.38 lib/knj/knj_controller.rb
knjrbfw-0.0.37 lib/knj/knj_controller.rb
knjrbfw-0.0.36 lib/knj/knj_controller.rb
knjrbfw-0.0.35 lib/knj/knj_controller.rb
knjrbfw-0.0.34 lib/knj/knj_controller.rb
knjrbfw-0.0.33 lib/knj/knj_controller.rb
knjrbfw-0.0.32 lib/knj/knj_controller.rb
knjrbfw-0.0.31 lib/knj/knj_controller.rb
knjrbfw-0.0.30 lib/knj/knj_controller.rb