Could not convert JavaScript argument arg 0" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS

jquery, jquery-plugins, jquery-ui

Solution

As per RaYell's indirect suggestion the problem was i was returning the wrong value in the ajax response.

Problem

I am trying to make this captcha jquery plugin to work. The a certain line of code is executed, the error pops up. This is the line of code that causes the error : ``` $(".ajax-fc-" + rand).draggable({ containment: '#ajax-fc-content' }); ``` What I am assuming is that there is some kind of conflict with the javascript reference, but can't determain what. These are the referenes that I am using ``` <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script> <script src="js/ui.core.js"></script> <script src="js/ui.draggable.js"></script> <script src="js/ui.droppable.js"></script> <script src="js/effects.core.js"></script> <script src="js/effects.slide.js"></script> ```

Original source