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 (3)
Thanks for doing these.
Posted by Mike Henke | July 17, 2009 5:10 PM
Posted on July 17, 2009 17:10
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.
Posted by Hugh Rainey | July 17, 2009 11:07 PM
Posted on July 17, 2009 23:07
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?
Posted by Bhakti | July 18, 2009 7:10 PM
Posted on July 18, 2009 19:10