You should have 2 main elements under project. The 1st is frameChart and 2nd
is model.  In fact that is in CF7 which uses Webcharts 5.0

I just noticed that in CF8 they have moved to webcharts 5.1 which doesn't
have the frameChart element any more. Try something like the following.  You
might need to adjust it somewhat but you want everything that makes up the
contents of the style elements

<cfset iStart = findNoCase("<style>",sChartStyle)>
<cfset iEnd = findNoCase("</style>",sChartStyle)>
<cfsavecontent variable="chartStyle">
<cfoutput><?xml version="1.0" encoding="UTF-8"?>
#mid(sChartStyle,iStart+7,iEnd-iStart)#
</cfoutput>
</cfsavecontent>


On 18/01/2008, Raymond Camden <[EMAIL PROTECTED]> wrote:
>
>
> I'm having issues duplicating this. I created a WCP file, saved it so
> CF can read it, and I noticed that my file has no <frameChart in it,
> so the string funcs fail.
>
> On Jan 17, 2008 7:26 PM, Simon Haddon <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > This is how we use webcharts.
> >
> > 1. We save the project (WCP file) in a folder accessible by the CF
> server.
> > We use to save just WC3D style sheet but realised that we could just
> grab
> > that from the WCP file at run time and saving one project file is easier
> to
> > maintain than 2 files for each chart.
> >
> > 2. Create the XML Style from the WCP project.  Could have parsed the
> > document into XML then then grabbed the frameChart element but this
> appeared
> > to be simplier and quicker. (example below)
> >
> >             <!--- Read the WCP file --->
> >
> >             <!--- Get the frameChart component --->
> >                     <cfset iStart =
> findNoCase("<frameChart",sChartStyle)>
> >                     <cfset iEnd =
> findNoCase("</frameChart>",sChartStyle)>
> >                     <cfsavecontent variable="chartStyle">
> >                         <cfoutput><?xml version="1.0" encoding="UTF-8"?>
> >                         #mid(sChartStyle,iStart,iEnd-iStart+13)#
> >                         </cfoutput>
> >                     </cfsavecontent>
> >
> --
>
> ===========================================================================
> Raymond Camden, Camden Media
>
> Email    : [EMAIL PROTECTED]
> Blog      : www.coldfusionjedi.com
> AOL IM : cfjedimaster
>
> Keep up to date with the community: http://www.coldfusionbloggers.org
>
> >
>


-- 
Cheers
Simon Haddon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"cfaussie" group.
To post to this group, send email to cfaussie@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cfaussie?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to