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]> 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?
> 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]> wrote:
>>
>> urlencodedformat()
>
> --
> online documentation: http://openbd.org/manual/
> http://groups.google.com/group/openbd?hl=en
>

-- 
Alex Skinner
Managing Director
Pixl8 Interactive

Tel: +448452600726
Email: [email protected]
Web: pixl8.co.uk

-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

Reply via email to