I am trying to pass associative array to functions in a jquery plugin. Just as the answer from this question.
And this is my plugin and how I execute it on dom ready. You can have a look at jsfiddle.
The plugin works fine on firefox only but fails on chrome, opera and safari. I don't understand why!
In chrome, the javascript console says there are two errors in these lines,
an error in the plugin, error message,
Uncaught SyntaxError: Unexpected token :
// Callback function for proccesing the result.
$this.get_result = function({object:object,setup:setup,data:xml}) {...
and another error in dom ready,
Uncaught SyntaxError: Unexpected token {
beforeAjax: function({setup:setup,object:form}) {...
Can somebody tell me what I have done incorrectly?