> If I was to try and solve the problem on the other end (after > the site was developed), I would first identify all the > javascript objects that were in use, and where they were > being used within the application. No idea on the best > approach for this... Seems like a manual search. Once I had > them all inventoried, I would build a single 'javascript.cfm' > file that consists of conditional logic wrapped around > javascript, where the conditions identified specific > javascript functionality given by javascript objects. At the > top of every page, I would put a <cfparam name="jObjects" > default="accordian,XMLHttpRequest,autocomplete"> (where the > default values are the objects that I want included on that page). > > After all of this was done, I would include the > javascript.cfm like this: > > <script type="text/javascript" src="javascript.cfm"></script> > > Of course I don't know how well this deals with browser > caching issues...
That would be a terrible approach, because of browser caching issues. You'd be much better off just having one static JS file that gets used by every page, but only downloaded once. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! This email has been processed by SmoothZap - www.smoothwall.net ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 by AdobeĀ® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283489 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4