I think you're out of luck. If your pages require a client that parses and executes JavaScript in able to display all the content, cfhttp and cfdocument won't do that. I've never been able to find a way to easily execute JavaScript and collect the rendered HTML on the server.
~Brad -------- Original Message -------- Subject: CFDOCUMENT src="" and Dynamic HTML From: "Brook Davies" <cft...@logiforms.com> Date: Thu, August 13, 2009 7:32 pm To: cf-talk <cf-talk@houseoffusion.com> Is there any way to capture a rendered page that uses DHTML? I have a simple test case where I use some JS to do a document.write('test') to the page and then use CFDOCUMENT to grab the page via the src attribute. But none of the dynamic content is ever rendered. Has any one had any success with this? The only workaround I can think of, and its convoluted and I am not even sure it would work: 1. Create a Unique ID server side and write a database entry for the content to fetch 2. Call cfdocument or cfhttp to fetch the page, passing the uniqueID. 3. On the page, include an ajax call back to send back to the server the documents innerHTML (which should be the dynamic output) along with the uniqueID 4. The server (polls?) gets the new HTML from the database and uses it with CFDOCUMENT to create the page. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325450 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4