🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.xml
Article #10004

[XForms] akcja xf:input

#10004
From: Andrew Cohen
Date: Mon, 15 Sep 2008 19:45
16 lines
1350 bytes
   Jakiego elementu należy użyć, żeby po wciśnięciu Enter w xf:input zostało wykonane sprawdzenie, czy łańcuch wpisany w xf:input jest równy "ok", a następnie pojawił się komunikat w zależności od tego sprawdzenia?

      <xf:model id="myModel">
		 <xf:instance id="czasownik" xmlns="">
		 	<data>
				<pytanie id="pytanie">x</pytanie>
				<wpisane />
				<klucz>Präteritum</klucz>
			</data>
		 </xf:instance>
	     <xf:instance id="verben" src="verben.xml" />
      </xf:model>

	 <xf:input ref="instance('czasownik')/wpisane" incremental="true">
		<xf:label id="labelKlucz">Präteritum: </xf:label>
	 </xf:input>
Technical Details
Message-ID: <gamdpi$v4g$1@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.rmf.pl!agh.edu.pl!news.agh.edu.pl!news.onet.pl!not-for-mail
From: Andrew Cohen <cohen72@o2.pl>
Newsgroups: pl.comp.xml
Subject: [XForms] akcja xf:input
Date: Mon, 15 Sep 2008 21:45:20 +0200
Organization: Onet.pl
Lines: 17
Message-ID: <gamdpi$v4g$1@news.onet.pl>
NNTP-Posting-Host: jan200.net.autocom.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1221507698 31888 77.236.6.47 (15 Sep 2008 19:41:38 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Mon, 15 Sep 2008 19:41:38 +0000 (UTC)
X-Sender: /NXnEdMO/pH8lMVpkvxASg==
User-Agent: Thunderbird 2.0.0.16 (X11/20080707)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit