Answer the question
In order to leave comments, you need to log in
Doesn't handle success on $.ajax?
Subject. Already broke his head.
There is a code:
$.ajax({<br>
url:'/udata://emarket/cart/.json',<br>
type:'GET',<br>
dataType: 'json',<br>
success:function(data){<br>
console.log(data)<br>
}<br>
});<br>
Answer the question
In order to leave comments, you need to log in
{
"id": "dummy",
"summary": {
"amount": 0
},
"module": "emarket",
"method": "cart"
}
If I understand correctly, the script is triggered by pressing the buy button.
And it returns <?xml version="1.0" encoding="utf-8"?>
Why should dataType:'json' succeed?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question