Adam, What a cfinclude does is include the code of that page into what you are doing. Because of this it does not execute the page it just includes the code. What you can do is this:
<cfset url.action = "comments1"> <cfset url.commentID = findContent.entryID> then do <cfinclude template="comments.cfm" /> Now I will admit this might not act ok since the comments.cfm probably is written to run autonomously. and changing the url.action on the page you are calling from could produce bad results. If you are in CF8 you can do <cfdiv source="comments.cfm?action=comments1&commentID=#findContent.entryID#" /> and that will run it in the javascript space and probably work better for you. J.J. On 9/28/07, Adam Parker <[EMAIL PROTECTED]> wrote: > I currently use BlogFusion to run a blog for a school. At the end of each > blog post, there is a link to view or add comments. This link uses JS to > open in a new window calling the file comments.cfm. I would like to diplay > the content of comments.cfm on the same page as the blog entry instead of > opening in a new window. I have tried using > > <cfinclude > template="comments.cfm?action=comments1&commentID=#findContent.entryID#" /> > > but produces an invalid argument error. Does CFinclude not like calling > additional parameters? Can I only use a set file name? Maybe I'm going > about this wrong, but I'm not certain how else to achieve this. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Create robust enterprise, web RIAs. Upgrade to ColdFusion 8 and integrate with Adobe Flex http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJP Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3074 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
