D
D
Dima Tect2017-11-01 14:31:56
JavaScript
Dima Tect, 2017-11-01 14:31:56

Error in javascript, how to solve?

Already solved the issue, the problem was the wrong ID that the javascript was sending to the page. Fixed it and everything works fine. Thanks for the help!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
deemaagog, 2017-11-01
@Dima8249

try {
c = $.parseJSON(c)
} catch (err) {
}

M
M-ka, 2017-11-01
@M-ka

If I read it right, the error is
there the text goes immediately with the variable... it shouldn't be like that, it should be even like
'text' + variable + 'text' or in another sequence, perhaps the following option was meant

else changeLoaderToModal('Ошибка проверки, window[test__error__' + c.code + ']')
//or
else changeLoaderToModal('Ошибка проверки, window[' + test__error__ + c.code ']')

or something like that, I don't understand test__error__ -- text or variable

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question