Welcome Guest, Not a member yet? Register   Sign In
Buliding CodeIgniter App - Need advice on XFORMS
#3

[eluser]xwero[/eluser]
If you want the browser to parse xforms i guess it will be nothing more than putting the xform markup in the view files. I'm not sure if the markup can be parsed if it's embedded in text/html outputted content.

The second obstacle is i don't think all browsers support native xform, some don't even support the current css specifications. So you need a severside parser removing a great feature of xforms, the event handlers, as the serverside parser will output an html form.
For CI it means if you have a serverside parser you have to load that library and bind the output to the master view if there is one or use a serverside parser that catches the forms in the views directory and it has a method that can output the cache file.
Code:
// output to master view example
$data['content'] = $this->xforms_parser->to_html('some_form.xml')->get_rendered_content();
// cached output example
$this->load->view($this->xforms_parser->to_html('some_form.xml')->get_cache_name());


Messages In This Thread
Buliding CodeIgniter App - Need advice on XFORMS - by El Forum - 05-24-2009, 05:56 PM
Buliding CodeIgniter App - Need advice on XFORMS - by El Forum - 05-25-2009, 12:31 AM
Buliding CodeIgniter App - Need advice on XFORMS - by El Forum - 05-25-2009, 01:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB