edlie

Ajax function sometimes return undefined

Posted 3 years ago by edlie

I have 3 ajax function that run when the page is loaded. 2 function called after the 1st function is completed (.complete())

The code works, but kinda buggy. Sometimes 1 from the 2 ajax function that called in .complete() returned undefined data from the controller

I test the controller by creating it as an API so it can be tested by Postman. The result is 100/100 request get the returned data perfectly.

I wonder what's wrong

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.