portal entry

select a category, or use search below
(searches all categories and all time range)
Title:

Examples – sample code

| View in Portal
March 12, 2020 06:11:33 PM GMT
3 Comments
<p>sample examples</p>
<p>The post <a rel="nofollow" href="https://coldfusion.adobe.com/2020/03/examples-sample-code/">Examples – sample code</a> appeared first on <a rel="nofollow" href="https://coldfusion.adobe.com">ColdFusion</a>.</p>
Labels: ColdFusion Builder, Discussion, IDE, 2018, discussion

Comments:

ColdFusion no longer comes with samples (since CF7), as it was deemed unsafe/insecure. But there are many places that have examples, some of which you can even run interactively: <ul> <li>the CF docs. Many pages in the CFML Reference not only offer examples (for many, but not all tags/functions), but many then also offer links to run the code directly and live on the cffiddle.org site. <a href="https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-functions/functions-l/listfindnocase.html" rel="nofollow">An example is here</a>.</li> <li>the cfdocs.org site also offers examples for many (though not all) tags/functions, and they also offer have links to run the code live on the trycf.com site.  <a href="https://cfdocs.org/listfindnocase" rel="nofollow">An example is here.</a></li> <li>there are still other sites that could help you, but rather than list them all, let me point you to a few categories of my cf411.com site (of tools and resources for CFers) where I DO point to them:</li> <li><a href="https://www.cf411.com/dochelp" rel="nofollow">https://www.cf411.com/dochelp</a></li> <li><a href="https://www.cf411.com/cffiddles" rel="nofollow">https://www.cf411.com/cffiddles</a></li> <li><a href="https://www.cf411.com/cfres" rel="nofollow">https://www.cf411.com/cfres</a></li> <li>And you may find value in several other of the dozens of categories, listed at the top of the page</li> </ul> Finally, someone may well offer some other specific link to some favored site for examples. If I don't list it/them already on my cf411 site, I would happily add them. Let us know if this gets you going.
Comment by Charlie Arehart
4689 | March 16, 2020 03:38:39 PM GMT
Is there a site where one can find examples of charts that cfchart can create?
Comment by garykosman
4782 | July 12, 2020 06:26:38 AM GMT
Sure, Gary. There is more than one site with examples of charts that cfchart can create. It's not clear if you you mean JUST examples of the charts that can be built, or also the code to do it. First, the CFML Reference page on CFCHART itself does have both examples of various charts and their code, starting on the part of the page here: <a href="https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-c/cfchart.html#Creatingabasicchart" rel="nofollow">https://helpx.adobe.com/coldfusion/cfml-reference/coldfusion-tags/tags-c/cfchart.html#Creatingabasicchart</a> , which is followed by several different chart types (showing the chart and code). Second, there's another page showing many examples of charts CF can make (but only showing the chart examples, not code): <a href="https://www.quackit.com/coldfusion/tutorial/cfchart_examples.cfm" rel="nofollow">https://www.quackit.com/coldfusion/tutorial/cfchart_examples.cfm</a> Hope that gets you going. And if you (or anyone else reading along) may want to create a more complete example, showing every chart type, that would be great. You could even create the examples for free, without need of hosting them, on Adobe's cffiddle.org site. And if you log in there, you can then save and share the links, either in a comment here, or better still a new blog post (here, or elsewhere). HTH.
Comment by Charlie Arehart
4783 | July 13, 2020 08:00:25 PM GMT