- From: Mikko Honkala <honkkis@tml.hut.fi>
- Date: Fri, 26 Jul 2002 16:18:18 +0300
- To: Jérôme Nègre <jerome.negre@e-xmlmedia.fr>, "Amir Yiron" <AYiron@store-age.com>, <www-forms@w3.org>
- Message-ID: <MOELJNHNHEHNIMLMBJKGOECPCBAA.honkkis@tml.hut.fi>
Hi, I further modified the example to make it work with X-Smiles, see attachment. (X-Smiles currently uses xforms-activate instead of xforms:activate, since DOM events do not support namespaces). -mikko > -----Original Message----- > From: www-forms-request@w3.org [mailto:www-forms-request@w3.org]On > Behalf Of Jérôme Nègre > Sent: 26. heinäkuuta 2002 12:04 > To: Amir Yiron; www-forms@w3.org > Subject: Re: Switch doesn't switch... > > > I cant' answer for XSmiles, but with minor modifications (see attachment) it > works with XFE. > > Hope this helps, > Jérôme > > ----- Original Message ----- > From: "Amir Yiron" <AYiron@store-age.com> > To: <www-forms@w3.org> > Sent: Thursday, July 25, 2002 3:16 PM > Subject: Switch doesn't switch... > > > > > > Hello, > > > > I'm using a 'switch', but I can't cause it to switch! > > I'm using XSmiles 0.6 browser, which suppose to support 'switch'... > > I tried a lot of conventions, all of them are based on the example in the > tutorial, > > but none of them work! > > For example: > > > > <?xml version="1.0" encoding="UTF-8"?> > > <!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by Amir (R&D) --> > > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:xforms="http://www.w3.org/2002/01/xforms" > xmlns:xlink="http://www.w3.org/1999/xlink" > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > xmlns:ev="http://www.w3.org/2001/xml-events" xml:lang="en"> > > <head> > > <title>XForms in XHTML</title> > > <xforms:model id="internal"> > > <xforms:instance xmlns="" id="selections"> > > <workframe yourname="amir"/> > > </xforms:instance> > > </xforms:model> > > </head> > > <body> > > <xforms:switch model="internal" id="sw"> > > <xforms:case id="in" selected="false"> > > <xforms:input ref="workframe/@yourname"> > > <xforms:caption>Please tell me your name</xforms:caption> > > <xforms:action ev:event="activate"> > > <xforms:toggle xforms:case="out"/> > > </xforms:action> > > </xforms:input> > > </xforms:case> > > <xforms:case id="out" selected="true"> > > <xforms:input ref="workframe/@yourname"> > > <xforms:caption>Wrong, try again!</xforms:caption> > > <xforms:action ev:event="activate"> > > <xforms:toggle xforms:case="in"/> > > </xforms:action> > > </xforms:input> > > </xforms:case> > > </xforms:switch> > > </body> > > </html> > > > > Any idea? > > Thanks, > > --Amir > > > > > > Amir Yiron - Software Engineer > > =========================== > > StoreAge Networking Technologies > > ------------------------------------------- > > Tel: (+972) - 4 - 8203454 Ext. 307 > > Fax: (+972) - 4 - 8203464 > > E-mail: ayiron@store-age.com > > Web: www.store-age.com > > > > > > > > >
Attachments
- application/octet-stream attachment: list.xforms
Received on Friday, 26 July 2002 09:15:58 UTC