Error in Firefox: "unknown argument type (model)"

38 views
Skip to first unread message

Luis Gonzalez

unread,
Feb 23, 2013, 1:49:42 AM2/23/13
to Agility.js
Right now I feel I can do wonders with Agility when testing it in a
Webkit browser.
But as soon as I try other browsers, things get messy...

The problem I'm having now is when calling "gather" from within a
container object.
For example, calling this :

this.gather(item, 'append', 'ol');

Throws this error in Firefox:
"uncaught exception: agility.js: unknown argument type
(model)"

However, it works as expected in Chrome or Safari.
This is the most frequent problem I found, but I can't find the
solution.
I would highly appreciate any hint on this issue...

Thanks!
Luis

Luis Gonzalez

unread,
Feb 25, 2013, 12:15:56 PM2/25/13
to Agility.js
Fixed.
I had to add this at the top of my script:

$.ajaxSetup({ dataType: 'JSON' })


Luis Gonzalez

unread,
Feb 26, 2013, 7:41:23 AM2/26/13
to Agility.js
Now, if anyone could tell me why it doesn't work in Internet Explorer
9...
It seems the problem is, always, with ajax calls.

IE9 doesn't throw any error. The script is *exactly* the one taken
from the docs examples.
Has anyone experienced this problem?
Reply all
Reply to author
Forward
0 new messages