The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

calling a js function after ajax page load

on index.php i have a tabbed navigation menu. when the "test" tab is clicked, test.php is loaded via ajax into index.php. test.php is a short php script and an html form. the script calls a db that populates the form fields - all working fine.

some of the form fields should be tinyMCE textareas. im "applying" tinyMCE using the standard tinyMCE.init javascript function. problem is, its not applied on these ajax pages. im not sure where to place this tinyMCE.init function. i tried on the index.php page and in the test.php page but it doesnt work.

i can call a function when the tab gives an onShow, it works fine with a simple alert("hey"); test but when i replace the alert with the tinyMCE.init function, it still doesnt get applied

firebug shows no errors ... can anyone tell me what im doing wrong?

Last edited by stef25; Nov 6, 2007 at 14:01.
Reason: typo

I need someone to protect me from
all the measures they take in order to protect me

im actually using jquery ajax which comes with a callback function (onShow) for when the external page is loaded. onShow alert("hey") works. im just wondering why that works, but the tinyMCE.init function wouldnt?

I need someone to protect me from
all the measures they take in order to protect me