W3C home > Mailing lists > Public > www-forms@w3.org > November 2006

conditional send

From: Jason <jeacott@hardlight.com.au>
Date: Thu, 02 Nov 2006 16:38:45 +1030
Message-ID: <45498B6D.9030301@hardlight.com.au>
To: www-forms <www-forms@w3.org>

Hi all,
	does anyone know how to do a conditional send in an xforms-ready event 

I've tried a few things - and a few things that I really wouldnt expect 
to work, but so far I dont have a solution.

for those that want to know why - I only want the form to load data if 
it needs to - and it doesnt need to in every case.

eg: -this doesnt work but you get the idea.

  <xf:action ev:event="xforms-ready" >

<xf:send submission="loadtransitionlist"  />

While I'm here I discovered what I would consider some inconsistencies 
in the xforms spec today.
with xf:load you can bind to an instance node in order to load a new 
page. but the same bind/ref attributes cant be used in the same way for 
a submission element. I really wanted a way to dynamically choose the 
url and params that a submision element would submit to (I wanted to 
submit the xml to that location) but couldnt find a way to do it. If the 
attributes were a bit more consistent in how they are used in the 
various elements then I think xforms would be a whole bunch easier to use.

Received on Thursday, 2 November 2006 06:12:01 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:54 UTC