|
Quickstart
Concentré XForms' quickstart guide.
Featured IntroductionConcentré is a cross browser XForms 1.1 processor written in pure javascript. You don't need to install any plugins as Formsplayer or Firefox XForms extension. RequirementsCurrently Concentré has been tested only under Firefox 3. It should works with Firefox 2.x. We will support IE 6 to 8 very soon. Safari, Opera, mobile platforms and older Firefox releases coming later. Most of the code is compatible with IE but to works we must concat al small .js files in one big file. Concentré use XSLT to render forms controls. So browser that doesn't have XML, XSLT implementation accesible from Javascript will never been supported. At least as soon we build an alternative renderer not base on XSL stylesheet. Basic usageAs XForms is related to XHtml you firstly must add apropriates xml namespaces in the html element Concentré requires to add only a javascript file to the head element and optionaly a CSS stylesheet. `<html xmlns="http://www.w3.org/1999/xhtml" xmlns:form="http://www.w3.org/2002/xforms" > <head> <script type="text/javascript" src="src/concentre.js"></script> </head> <body> ... </body> Unknown end tag for </html> `XForms separate datas from controls so you must declare a data "model" in the head and your controls into body. Controls will be binded to datas using XPath expression. |