Log in

View Full Version : Running a script after loading page with AJAX



profm2
03-04-2009, 08:05 AM
I'll attempt to be as succinct as possible.

I'm using the scripts found here: http://www.dynamicdrive.com/dynamicindex17/ajaxcontent.htm to load pages into a DIV.

The page I'm attempting to load has a jQuery TreeView menu on it: http://www.dynamicdrive.com/dynamicindex1/treeview/index.htm

Now, once the page gets loaded, and I load all the other JavaScript and CSS files required, the actual scripts will not operate.

This is because the DEMO.JS file has in it: "$(document).ready(...)" function that never gets executed.

How can I execute this after the AJAX script load the page?