I'm trying to pull in HTML/Javascript from an external PHP page using Prototype/AJAX, and the HTML renders fine, but the Javascript doesn't work after the AJAX request.
I'm also showing a loading bar while the page loads the data, and this part works fine. My Symfony PHP + Prototype code is below. Any advice that might put me in the right direction would be greatly appreciated!
<?php echo javascript_tag(
remote_function(array(
'update' => 'getinfo',
'method' => 'get',
'script' => true,
'url' => 'event/load?id='.$sf_params->get('id'),
'loading' => "Element.show('loading')",
'complete' => "Element.hide('loading')",
))
) ?>