Hi guys,
I've tried to fire off some JavaScript on edit page load, e.g. http://www.mysite.com/admin/pages/edit/show/123?locale=en_GB, like this:
(function($) {
$(document).ready(function() {
alert("I'm ready!!");
});
})(jQuery);
But this only works when doing a full page load, not with the usual SilverStripe AJAX page loading, i.e. after selecting a page in the site tree view. The reason is documented here:
But I was wondering if anyone knew a solution. My SilverStripe installation version is Framework: 3.1.8, CMS: 3.1.8. What is the appropriate event that will work with the AJAX page load?
Thanks,