Sha256: 2d1938252394413c7b8019e17f000e6b4adbb3c2fad698008f5be216163c7848

Contents?: true

Size: 405 Bytes

Versions: 3

Compression:

Stored size: 405 Bytes

Contents

require 'date'
import 'AjaxWidget'

class Ajax1 < Iowa::Component

	attr_accessor :interval

	def awake; @interval = 30; end

	def get_time
		response = component_named(:RPCResponse)
		response.data = "<p>The time is now: <b>#{Time.now.asctime}</b></p>"
		yield response
	end

	def x_days_from_now
		response = component_named(:IntervalWidget)
		response.interval = @interval
		yield response
	end	

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
IOWA-1.0.3 test/TC_IOWAFunctions/iowa/Ajax1.iwa
IOWA-1.0.2 test/TC_IOWAFunctions/iowa/Ajax1.iwa
IOWA-1.0.0 test/TC_IOWAFunctions/iowa/Ajax1.iwa