Subject: | "parser" option doesn't work at all in most of HTML::AjaxTags functions |
This example code:
HTML::AjaxTags->select(parser => 'new ResponseTextParser()', ...)
produces such JS code:
new AjaxJspTag.Select(
..., {
..., parser: "new ResponseTextParser()"
})
instead of:
new AjaxJspTag.Select(
..., {
..., parser: new ResponseTextParser()
})
since ajaxtags.js uses parser option as following:
parser: options.parser ? options.parser : new ResponseXmlParser(),
i.e. doesn't do "eval options.parser", so it should already contain
object instance.
The fix is simple: not all the parameters' values should be quoted.
Some of the HTML::AjaxTags do quote the value of parser parameter, some
do not.
Here is the list of functions needed to be fixed: autoComplete,
portlet, select, tabPanel, toggle, updateField.
Just remove quotations :).
Thanks a lot!