I had a problem calling a custom JS function after an AJAX call. Basically, I created a couple of radio buttons on the html main page. When the user clicks on one of the switches, he calls an AJAX call and returns another html file in the contents of the "div" that I set on the main html page. Another html file contains a user-defined JS function (for example, "updateContent ()"), which uses the onclick event handler to call the function. When I launch the application and press the button. I saw how firebug complained about the error "updateContent () is not defined". The function itself works great and needs to be correctly defined. Please help me about this! Thank.
source
share