W3C home > Mailing lists > Public > public-forms@w3.org > May 2009

Re: Test 4.2.4.a: possible simpler idea

From: John Boyer <boyerj@ca.ibm.com>
Date: Tue, 5 May 2009 13:36:13 -0700
To: "Leigh L. Klotz, Jr." <Leigh.Klotz@Xerox.com>
Cc: public-forms@w3.org
Message-ID: <OF2C04AF75.F8CAACC0-ON882575AD.0070D498-882575AD.007119B8@ca.ibm.com>
Hopefully this revised test of xforms-model-destruct can be accepted by 
the working group.
With it, we are able to successfully show support for the 
xforms-model-destruct event in both Ubiquity + IE7 and Ubiquity + FF3.

John M. Boyer, Ph.D.
STSM, Interactive Documents and Web 2.0 Applications
Chair, W3C Forms Working Group
Workplace, Portal and Collaboration Software
IBM Victoria Software Lab
E-Mail: boyerj@ca.ibm.com 

Blog: http://www.ibm.com/developerworks/blogs/page/JohnBoyer
Blog RSS feed: 
http://www.ibm.com/developerworks/blogs/rss/JohnBoyer?flavor=rssdw





From:
"Leigh L. Klotz, Jr." <Leigh.Klotz@Xerox.com>
To:
public-forms@w3.org
Date:
04/29/2009 10:10 AM
Subject:
Test 4.2.4.a: possible simpler idea



How about this?  It's simpler than what we discussed with submission and 
server-side testing.

<xforms:load ev:event="xforms-model-destruct"
             resource="http://www.w3.org"
             show="new"/>

If that works, I also recommend doing this, to prevent the xf:load from 
happening when the page is closed without being tested.
It's not strictly necessary but it makes the test easier to work with.

<xforms:load ev:event="xforms-model-destruct"
             if="boolean-from-string(tested)"
             resource="http://www.w3.org"
             show="new"/>

Attached is the test that does this (and sets the tested flag, etc.)

Firefox 3 passes this test.

Leigh.
 

[attachment "4.2.4.a.xhtml" deleted by John Boyer/CanWest/IBM] 
Received on Tuesday, 5 May 2009 20:36:04 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 October 2013 22:06:51 UTC