Hi folks. Been searching google and forums for a while and unable to find this result. Here's a quick simple piece of code to explain.
So my issue is this. In the ajax response I have a button with an onClick event trying to fire the myFunc function on the main page. I assume that the ajax response is not binding with the calling page. Any ideas here? Much thanks in advance.
Code:
<html>
<head>
<script>
function myFunc() {
alert('hello');
}
function ajaxCall() {
//performing ajax call here and using innerHTML to place response in <div> below
}
</script>
<body>
<div id="textFromAjax"></div>
</body>
</html>
So my issue is this. In the ajax response I have a button with an onClick event trying to fire the myFunc function on the main page. I assume that the ajax response is not binding with the calling page. Any ideas here? Much thanks in advance.