Skip Menu |

This queue is for tickets about the HTML-AjaxTags CPAN distribution.

Report information
The Basics
Id: 25889
Status: new
Priority: 0/
Queue: HTML-AjaxTags

People
Owner: Nobody in particular
Requestors: nikita.dedik [...] bulyon.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.04
Fixed in: (no value)



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!