> 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. > > > > Hi J.J. -
Your suggestion does work, however, as you predicted, it does break more code. We currently run CF7 Standard and are looking into upgrading to CF8 Enterprise. As I am not savvy enough to think of an alternative to my situation, it may have to stay as is for now. Thank you for your suggestion. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Get the answers you are looking for on the ColdFusion Labs Forum direct from active programmers and developers. http://www.adobe.com/cfusion/webforums/forum/categories.cfm?forumid-72&catid=648 Archive: http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:3077 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
