by Bhakti Pingale

 Comments (4)

Created

July 17, 2009

3 things are necessary here:
1. It is necessary that the file you want to preview is in webroot.
2. It is necessary that the file is a part of a project in CFBuilder.
3. It is necessary that a server is associated with this project.
Considering these conditions the three steps should be as simple as:
1. Create/Import a Project in CFBuilder and create a cfm/cfc in it.
2. Associate that server with this Project, whose webroot will contain your file to be previewed**
3. Move to the Firefox/IE tab from the Source tab to internally preview this file. Else right-click on the editor and say Run As -> ColdFusion Application to open it in external browser.
**Checkpoint: A checkpoint for preview to be successful is that when you associate a server with a project the ‘Sample URL’ field below it shows the url for the project correctly.
The same checkpoint also holds good when you want to debug. You will see me re-iterating this in my post on Debugging.
Note: Though the F12 like shortcut key is not available to preview a file, there is a small button(green arrow) at the top in the tool bar. Clicking this button will run the currently opened cfm.

COMMENTS

  • By Mike Henke - 5:10 PM on July 17, 2009   Reply

    Thanks for doing these.

  • By Hugh Rainey - 11:07 PM on July 17, 2009   Reply

    I thought I would send this through. I’m not sure if this would be the place to report issues.
    I was following the procedure in step 3 and when I when the browser came up the url was as follows:
    http://localhost/index.cfm
    the url should have been:
    http://localhost/mydirectory/index.cfm
    I am running windows 7 rc. Let me know if I there is any other details that you need.

  • By Bhakti - 7:10 PM on July 18, 2009   Reply

    You can start a technical discussion at our public forum (URL:http://forums.adobe.com/community/labs/coldfusionbuilder) Looks like you haven’t set the docroot appropriately. What do you see in the Sample URL field? Is this is a local or remote server?

  • By KRISTY - 12:06 PM on July 15, 2010   Reply

    I kept nodding my head the entire time I was reading this, “Yes, I fully agree!” I’ve been blogging for three numerous now, but only lately got considerable about. It is improved my lifestyle in so quite a few methods, I want to kick myself for not getting much more severe a fantastic earlier! Also, I cannot wait to study your blog nearly each and every for more an additional year!

ADD A COMMENT