I have a page where I enter map names, and map data is presented through AJAX. I removed a lot of code in this example that is not related to the problem, and I tested this simplified code and it reproduces the same error.
The mysterious thing is that it works great in the first run through the testSelectedCardDetails function. He calls setNameCardIsFromField fine and does what he should do. The second time a console dies through it, showing:
Uncaught TypeError: setNameCardIsFromField is not a function
What's up with that? I honestly donβt know enough about how jQuery works to deal with the problem, so Iβm moving on to the stackoverflow world asking for salvation from this madness.;)
function testSelectedCardDetails(cardName) { var cardTestInfoArray = []; $.ajax({ url: 'includes/getCardAndSetDataViaAJAX.php', type: 'POST', cache: false, async: false,
The function is called here:
function setNameCardIsFromField(setCode) { $.ajax({ url: 'includes/getCardAndSetDataViaAJAX.php', type: 'POST', cache: false, async: false,
source share