Below, i have included a screenshot form the F12 view in chrome.
My problem is: Uncaught ReferenceError: callModal282876547 is not defined. The other errors are not an issue.
I don't know if this is relevant, but the code that is shown was loaded into the page by an ajax call (including the javascript).
The error occurs when i click the button, and tells me the function is not defined, but it is clearly present in the code? What can cause this, and how would i solve this problem?