Re: Re: Flexy feedback

From: Date: Wed, 10 Dec 2003 12:32:40 +0000
Subject: Re: Re: Flexy feedback
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-9448@lists.php.net to get a copy of this message
hi alan the new fixes in Flexy are great, tested and everything works great. according to one of the seagull developers there was a problem with <br /> but this now seems to be fixed as well. you may want to include
 'flexyIgnore'       => 0
in the default options array parameters in Flexy.php i have one last problem to get full form functionality working, i wonder if you can think of a quick hack/fix for pre-checking checkboxes without flexy_element. i understand the flexy parser can only modify quoted attributes of tags, which gives rise to the following scenarios: 1. using a variable to set the checked flag in an input <input type="checkbox" {isChecked} name="hello"> -> doesn't parse 2. <input type="checkbox" {isChecked} name="hello" flexy:ignore> -> doesn't parse 3. is xhtml standard correct? the recommended[1] format is: <input type="checkbox" checked="checked" name="hello" /> however none of the following uncheck the box checked="unchecked" checked="false" checked="0" I currently use the long-winded <body onload="document.formname.elementname.checked='true'"> to get around the above problem, but would love to get around it. perhaps the flexy parser could 'fix' default html behaviour and override the default checked attribute value??
3. disabling template notices at a global ini level would also also be handy, the current method of reducing error_reporting temporarily works in many situations but if you're overriding PHP's default error behaviour there can be problems
I'm not sure how this would be done. - any ideas? -
i will look into this. cheers demian [1] http://www.w3schools.com/tags/tag_input.asp

« previous php.pear.general (#9448) next »