like theres two pages.
page one calls page two and displays the output of page 2 on page 1 via ajax.
now can i click on page 2's output(on page one) and have it execute another javascript function to call AJAX(a third page)
?

or what? if so... how?

If the page is loaded, all the javascript scripts have been read and executed. You can only call the functions that have been read. When you use AJAX to change a innerHTML into whatever you want, the javascript of the innerHTML is not executed. So no, you can't.

By the way, it is also not necersary: you can just simply create a javascript-script that contains all the functions, and put that into the head section of the original page.

~G

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.