mpartarrieu
Programmer
Hi. I'm releatively new to AJAX and was hoping someone could shed some light on this problem. I have this page with a link than changes the content of a div using AJAX. The new content includes is a PHP file with a javascript function and html, including a link to execute the javascript function. The problem is that when I click on the link, I get an error telling the javascript function is not defined.
I need to include the javascript function in the response text because some values of the function are retrieved from a database depending on the page you're retrieving, so it's not an option to call a general function outside of the AJAX response.
A simple example is available here:
Thanks in advance for your help.
I need to include the javascript function in the response text because some values of the function are retrieved from a database depending on the page you're retrieving, so it's not an option to call a general function outside of the AJAX response.
A simple example is available here:
Thanks in advance for your help.