I’ve been working further on FormProcessor’s “Frontend”:http://svn.mapledesign.co.uk/svn/FormProcessor/Frontend/ recently and got a nice working demo going (but it’s broken again now :)). The majority of the code has been done by hacking one of “PPK’s”:http://www.quirksmode.org/ demonstrations.
Thing is, I can’t fix the latest bug (@this.parentNode.parentNode.getElementById(fields[i]).style.display = ‘block’@ doesn’t want to work - see function @showValueFields@ in “the source code”:http://svn.mapledesign.co.uk/svn/FormProcessor/Frontend/templates/create_rules.php). I also can’t figure out how to prepopulate rulesets - if I have a PHP array, how the heck do I get the data from it into the form to start with?
I’m starting to wish I’d written the whole thing in PHP and reloaded the page whenever a rule was added/removed, although this seems a really inefficient way.
Is there anyone in the community who would help me? I imagine for someone who understands Javascript it would not be difficult.
2 comments ↓
Hi Peter,
Wonderful to see, that you are still trying to extend the script. Unfortunately I cannot help you with your problem, but I was wondering if you have seen:
http://www.sitepoint.com/article/practical-xml-form-validation
It is wonderful to see, that you are still trying to improve your script. Have you seen the following?
http://www.sitepoint.com/article/practical-xml-form-validation
I works quite good I think, and should be possible to implement with the FormProcessor.
I see good ideas in the xml markup for the ruleset as well.
Leave a Comment