Thanks guys, I have it figured out. It was a typo. :/
On Fri, Nov 23, 2012 at 2:55 PM, Kym Kovan <[email protected]> wrote: > Try breaking up that long string into chunks and see what bit fails. It > could be the pipe characters or one of the variables outputting funny chars. > You might have to build the string in sections, concatenating as you go... > > Kym > > > On 24/11/2012 7:11 AM, Jason King wrote: > >> I'm not sure if I'm being clear on where the error is. >> >> When I run the CFC, it throws an error when I try to set the URL string >> as a variable. *_"_**_Can't perform this operation on these data types." >> _* >> >> Even if the string wouldn't fly as an http request, shouldn't I at least >> be able to set the string as a variable? >> >> My 'cfset' command is failing. >> >> <cfset dnsStatsDailyGraph.chartURL = "http://chart.apis.google.com/** >> chart <http://chart.apis.google.com/chart>? >> chf=a,s,000000 >> &chxl=2:|Hits|3:|hours >> &chxp=2,50|3,15 >> &chxr=0,0,#getMaxYvalue#|1,1,**24|3,0,30 >> &chxs=0,000000,10,0,l,000000|**1,000000,10,0,lt,000000|2,** >> 000000,10,-0.5,l,000000|3,**000000,10,0,_,000000 >> &chxt=y,x,y,x >> &chbh=a,2,2 >> &chs=540x250 >> &cht=bvs >> &chco=FFC6A5|FFFF42|DEF3BD|**00A5C6|DEBDDE >> &chds=0,#getMaxYvalue# >> &chd=t:#dnsStatsDailyGraph.**hit1#, >> #dnsStatsDailyGraph.hit2#, >> #dnsStatsDailyGraph.hit3#, >> #dnsStatsDailyGraph.hit4#, >> #dnsStatsDailyGraph.hit5#, >> #dnsStatsDailyGraph.hit6#, >> #dnsStatsDailyGraph.hit7#, >> #dnsStatsDailyGraph.hit8#, >> #dnsStatsDailyGraph.hit9#, >> #dnsStatsDailyGraph.hit10#, >> #dnsStatsDailyGraph.hit11#, >> #dnsStatsDailyGraph.hit12#, >> #dnsStatsDailyGraph.hit13#, >> #dnsStatsDailyGraph.hit14#, >> #dnsStatsDailyGraph.hit15#, >> #dnsStatsDailyGraph.hit16#, >> #dnsStatsDailyGraph.hit17#, >> #dnsStatsDailyGraph.hit18#, >> #dnsStatsDailyGraph.hit19#, >> #dnsStatsDailyGraph.hit20#, >> #dnsStatsDailyGraph.hit21#, >> #dnsStatsDailyGraph.hit22#, >> #dnsStatsDailyGraph.hit23#, >> #dnsStatsDailyGraph.hit24# >> &chma=|0,15&chtt=Previous+24+**Hours++(#dnsStatsDailyGraph.** >> totalHits#+total+hits)&chts=**000000,11"> >> >> >> On Fri, Nov 23, 2012 at 1:50 PM, Alex Skinner <[email protected] <mailto: >> [email protected]>> wrote: >> >> Maybe the image tag on your browser is doing something clever on >> your browser it doesn't change the fact that if you are using >> special characters or long urls you need to encode and also make >> sure the length is ok. >> >> Put the code directly in the URL do you see what you expect or an >> error, I would use firebug or fiddler to inspect but start off >> with what ive suggested >> >> A >> >> >> On Friday, 23 November 2012, Jason King <[email protected] >> <mailto:[email protected]**>> wrote: >> > Here's the thing. It's works in another script where I compile >> the url within an <img src=""> tag wrapped in cfoutput tags. >> > >> > But in this function, rather than compiling the url within the >> img src tag, im compiling it into a variable which I want to >> return via json, and ajax will use that variable. >> > >> > This works, and will display the graph correctly. >> > >> > <cfoutput> >> > <img >> src="http://chart.apis.google.**com/chart<http://chart.apis.google.com/chart> >> ? >> > chf=a,s,000000 >> > &chxl=2:|Hits|3:|hours >> > &chxp=2,50|3,15 >> > &chxr=0,0,#maxYvalue#|1,1,24|**3,0,30 >> > >> &chxs=0,000000,10,0,l,000000|**1,000000,10,0,lt,000000|2,** >> 000000,10,-0.5,l,000000|3,**000000,10,0,_,000000 >> > &chxt=y,x,y,x >> > &chbh=a,2,2 >> > &chs=540x250 >> > &cht=bvs >> > &chco=FFC6A5|FFFF42|DEF3BD|**00A5C6|DEBDDE >> > &chds=0,#maxYvalue# >> > &chd=t:#hit1#, >> > #hit2#, >> > #hit3#, >> > #hit4#, >> > #hit5#, >> > #hit6#, >> > #hit7#, >> > #hit8#, >> > #hit9#, >> > #hit10#, >> > #hit11#, >> > #hit12#, >> > #hit13#, >> > #hit14#, >> > #hit15#, >> > #hit16#, >> > #hit17#, >> > #hit18#, >> > #hit19#, >> > #hit20#, >> > #hit21#, >> > #hit22#, >> > #hit23#, >> > #hit24# >> > &chma=|0,15 >> > &chtt=Previous+24+Hours++(#**totalHits#+total+hits) >> > &chts=000000,11" width="540" height="250" alt="Previous 24 Hours" /> >> > </cfoutput> >> > >> > >> > On Fri, Nov 23, 2012 at 1:37 PM, Alex Skinner <[email protected] >> <mailto:[email protected]>> wrote: >> >> >> >> urlencodedformat() >> > >> > -- >> > online documentation: http://openbd.org/manual/ >> > >> http://groups.google.com/**group/openbd?hl=en<http://groups.google.com/group/openbd?hl=en> >> > >> >> -- Alex Skinner >> Managing Director >> Pixl8 Interactive >> >> Tel: +448452600726 <tel:%2B448452600726> >> Email: [email protected] <mailto:[email protected]> >> Web: pixl8.co.uk <http://pixl8.co.uk> >> >> >> >> -- online documentation: http://openbd.org/manual/ >> >> http://groups.google.com/**group/openbd?hl=en<http://groups.google.com/group/openbd?hl=en> >> >> >> -- >> online documentation: http://openbd.org/manual/ >> http://groups.google.com/**group/openbd?hl=en<http://groups.google.com/group/openbd?hl=en> >> > > -- > > Yours, > > Kym > > > > -- > online documentation: http://openbd.org/manual/ > http://groups.google.com/**group/openbd?hl=en<http://groups.google.com/group/openbd?hl=en> > -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en
