A
A
Alexander Timofeev2015-09-10 13:22:19
JavaScript
Alexander Timofeev, 2015-09-10 13:22:19

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

3 answer(s)
N
Nikolai Chuprik, 2019-04-06
@The_XXI

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);

why not:
var response =  JSON.parse( xmlhttp.responseText );

D
Dmitry Kim, 2015-09-10
@aldtimofeev

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')

L
LittleFatNinja, 2015-09-10
@LittleFatNinja

And if possible, this is of interest

and if possible, there is a dock + TONS of articles on the Internet
google jquery on
Results: about
54,800,000 YOU ARE NOT ENOUGH WHAT YOU STILL ASK???????????????????????? ???????

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question