Hi, I'm trying to get an echo output from a php page called through jquery's .ajax function:
<code> $.ajax({ url:'php/cms_ne_edit.php', type:'POST', data:'ne_id='+ne_id, success:function(results) {...} }; </code> which calls a page containing an echo which itself contains a new form with, and heres where im having trouble, a js call to freeTextEditor: <code> <form...>... <script type='text/javascript'> initRTE('', 'example.css'); </script> ...</form> </code> The response is a new page containing only the output from the initRTE function (the text editor only, sitting in its own page all alone), not the whole form within the original page as expected. freeTextEditor works fine when called on page load, but is messing up when called through ajax (omitting initRTE(...) from the ajax call works fine). Has anyone had any experience of this? I'm stumped.