Re: Can you toggle from ev:event="xforms-ready" ?

> All the examples of toggle & thus case appear to be tied into triggers &
> I want the switch to be done upon load.

Suck it and see! :-)

OK, to save you the trouble, the answer is yes.

The truth of the matter is that actions can be attached to any element  
that receives an event.
The xforms-ready event is sent to the model, so you write:

	<xforms:model>
		...
		<xforms:action ev:event="xforms-ready">
			...
		</xforms:action>
	</xforms:model>

See XForms for HTML Authors, Part 2 for an example:
http://www.w3.org/MarkUp/Forms/2006/xforms-for-html-authors-part2.html#Initializing

Best wishes,

Steven Pemberton

Received on Tuesday, 8 August 2006 13:16:04 UTC