Uncaught TypeError: Illegal invocation in js using jQuery
<pre><code> function makePvsApplicantCalls(){
         console.log('In makePvsApplicantCalls'); 
         $.ajax({
             type: 'GET',
             url: "/reppify/RPCPostAdapter/httprpc/applicationFacade/getPreviousApplicants",
             data : {jobId : jobId, page: pgNoPA++},
             cache: false,
             beforeSend: function(){
                 console.log('In makePvsApplicantCalls Before Send'); 
             },                     
             success: onSuccessPA,
             complete: function(){  
                 $('#prevSpinner').hide();
             },
             error: handleError,
             dataType: 'json'
        });
}
</code></pre>

<p>On Calling above javascript function, I'm getting following exception on browser and not able to make AJAX call, following is the invoking code</p>

<pre><code>if(data.result&gt;0) {
    makePvsApplicantCalls();
}
</code></pre>

<p>Following is the error</p>

<pre><code>    Uncaught TypeError: Illegal invocation jquery.min.js:4
    e jquery.min.js:4
    ca jquery.min.js:2
    ca jquery.min.js:2
    ca jquery.min.js:2
    ca jquery.min.js:2
    f.extend.param jquery.min.js:4
    f.extend.ajax jquery.min.js:4
    makePvsApplicantCalls b2bscreening.js:2584
    $.ajax.success b2bscreening.js:2451
    n jquery.min.js:2
    o.fireWith jquery.min.js:2
    w jquery.min.js:4
    d jquery.min.js:4
</code></pre>

<p>How can I get rid of this exception?</p>
