I'm sorry if this answer seems similar to other questions in this website,
but I couldn't find what I need.
I have this code:
$.ajax({
url: '../../cgi-bin/executeQuery',
type: 'GET',
data: ({siid:5185,of:"xmlWithColID"}),
dataType: 'xml',
success: function(xmlR){
try{
$.ajax({
url: '../../cgi-bin/authList.py',
type: 'GET',
data: ({xmlToFormat:xmlR,service:"paperList"}),
dataType: 'xml',
success: function(data){
try{
displayResult(data,loadXMLDoc("js/authList/paperTableStyle.xsl"),"divPaperTable");
}catch(e){
console.log(e.message);
}
},
complete: function(XMLHttpRequest, textStatus){
$('#divMakingAuthorList').addClass('secondary');
$('#divMakingAuthorList').hide();
}
});
}catch(e){
console.log(e.message);
}
}
});
That gives me the following error in FF: "Illegal operation on WrappedNative prototype object".
When I removed the "success" part of my code, the error message was still there.
After, I removed the "complete" parte and the error message was there too.
But then, when I removed the following line of my code:
data: ({xmlToFormat:xmlR,service:"paperList"}),
The message was gone.
But I don't understand the reason. Is it possible to send "xml" to my CGI as data in an ajax event?
Thanks
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…