-1
Look at this print:
Actually up there is a request ajax already sent, and I want to learn how to write this, look how I did and it’s not working:
$.ajax({
url:'linkdeumsitequaisquer.com.br',
type:'post',
data:{questionId: 1, questionKey: "IDENTITY_SAFETYQUESTION_1},
dataType:'json',
success:function(res) {
alert(res);
}
});
I feel that something is missing, because there is this 0 and 1 there , in case must be vector within the date right? Something like this I don’t know much about theory, there’s another thing that people talk about object I also don’t know objects relates to javascript not understanding this, I know object is class car { } no PHP other than that I don’t know.
But the bottom line is: - How to write the request AJAX How was it sent in the image? - What is object in javascript this business of manipulation of JSON and such
It’s not working because it’s missing
"
...questionKey: "IDENTITY_SAFETYQUESTION_1}
<~ is not closing.– NoobSaibot
Javascript, Everything is an object., rs or almost everything. I found even your example of car class there. Incidentally it’s funny that the people who learn OOP always start with
class carro
orclass pessoa
kkkk.– Paulo Roberto Rosa
I don’t understand friends please exemplify
– OptimusProgramador
Have you checked the missing quotes as pointed out in the first comment? What appears in the browser console?
– Woss
Tries
[{questionId: 1, questionKey: "IDENTITY_SAFETYQUESTION_1"}]
, you can not pass only the object, but rather aarray
of objects, so it does not show the indices– Denis Rudnei de Souza