Answer the question
In order to leave comments, you need to log in
What does this entry .trigger('update') mean in jquery?
And if possible, this is of interest to .on ('update')
Answer the question
In order to leave comments, you need to log in
Obviously, clumsy json is coming. Output xmlhttp.responseText to the console and look at it either with your eyes or with some online parser that will show where the error is.
UPD:
And in general:
var response = xmlhttp.responseText;
response = JSON.parse(response);
var response = JSON.parse( xmlhttp.responseText );
Real life example:
When the green light at the traffic light turns on, the cars go - this is on('greenlight', function(){ cars.go(); })
And for the cars to go, you can force the green light to turn on - thistrigger('greenlight')
And if possible, this is of interest
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question