I do this to load the contents of spry tabs on the fly and keep the js
working.
function include_dom(script_filename) {
script_filename += '?' + Math.random(0, 1000) + '=' +
Math.random(0, 1000);
var html_doc =
document.getElementsByTagName('head').item(0);
var js = document.createElement('script');
js.setAttribute('language', 'javascript');
js.setAttribute('type', 'text/javascript');
js.setAttribute('src', script_filename);
html_doc.appendChild(js);
return false;
}
Put that function in the panel code (the code that pulls in the other pages
data), then at the bottom of each of your pages you are pulling in, put a
call to this function specifying the external js file name to run the
functions for that content. As long as your call to this function is in the
body it will function. Works great for me. I got it from:
http://www.phpied.com/javascript-include/
Joshua Cyr
Savvy Software
866.870.6358
www.besavvy.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:269140
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4