The Ajax works and returns the php output, including divs and javascript code, but the code isn't triggered or recognized. If the php page is accessed directly the javascript runs with the events recognized, but not in the panel from the page calling the ajax. Even simple alerts won't be triggered from the page calling the ajax.