Failed to convert JavaScript argument arg 0 "nsresult:" 0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS

I am trying to make this captcha jquery plugin work. A specific line of code is executed, an error occurs.

This is the line of code that causes the error:

$(".ajax-fc-" + rand).draggable({ containment: '#ajax-fc-content' });

I assume that there is some conflict with a link to javascript, but cannot determine what.

These are the referees that I use

<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>
+3
source share
7 answers

According to the indirect suggestion of RaYell, the problem was that I was returning the wrong value in the ajax response.

+3
source

, . , . , .

:

var COUNTRY_CODE = $(aform.COUNTRY_CODE);
$.post("/cfcs/reports/reports.cfc?method=getRegions",
            {COUNTRY_CODE:COUNTRY_CODE}, function(resp) { ...

, .val(), :

var COUNTRY_CODE = $(aform.COUNTRY_CODE);
$.post("/cfcs/reports/reports.cfc?method=getRegions",
           {COUNTRY_CODE:COUNTRY_CODE.val()}, function(resp) { ...
                                     ^^^^^^
+2

Dojo . Dojo Toolkit. (Mozilla/5.0 (X11; U; Linux i686; en-US; rv: 1.9.2.10) Gecko/20100915 Ubuntu/9.10 (karmic) Firefox/3.6.10 GTB7.1)

Chrome Opera , Linux FireFox → nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS). .

+1

. . . -, FF . Chrome, Opera FF "" , . , , , .

+1

Draggable JQery Reference Core JQuery

+1

I use this method to make jQuery work with jQuery and prototype + scriptaculous: http://api.jquery.com/jQuery.noConflict/

0
source

All Articles