I am almost done with the spellchecking gadget for ad_form that I've been working on. I should be able to come up with a number of patches quite soon and perhaps one of the gatekeepers could look at them and see if it something we'd like to add to the toolkit?
The new spellchecker will be fully templatable and supports checking of multiple input fields in one go. Those are the main features that the old one (3.x) didn't have...
There is one thing I'll need to fix first, though, and I think it has to do with export_vars, or improper use of it. The way I have implemented this, ad_form sends the form data to the spellchecker button by doing:
ad_return_exception_template -status 200 -params $args $spellcheck_template
Then, in the spellchecking template, I have this:
set entire_form [export_vars -form -entire_form -override { {merge_p 1} } info_vars]
The actual problem is that export_vars doesn't seem to handle vars that have a colon (:) in them (the other vars it handles well). I need to re-export all the original vars including the "form:id" and "form:mode" or ad_form cannot process the form... Should I file this as a bug, or is it intended to work this way? I am also not sure I'm using the correct syntax.
Thanks in advance,
Request notifications