Replace URL for Cfchart in subdomain

277 views Asked by At

I have a little problem with <cfchart> ...
<cfchart> is working fine with my live site. But, not working with the subdomain. As, it takes the url for <cfchart> as http://subdomain.mysite.com/CFIDE/GraphChart.cfm instead of http://mysite.com/CFIDE/GraphChart.cfm

Here is the relevant code:

<cfchart format="flash" xaxistitle="Month" yaxistitle="Reviews" chartwidth="180" chartheight="150" show3d="yes">
    <cfchartseries type="bar" colorlist="##778899,##778899,##778899,##778899">
        <cfchartdata item="#DateFormat(LastMonthThree, 'mmm')#" value="0">
    </cfchartseries>
</cfchart>
1

There are 1 answers

0
Waqas Malik On BEST ANSWER

Thanks for everyone for responding me... Anyway, i have solved the problem...
The problem was actually with cfchart-tag which takes map via the relative path to the CFIDE.

(/CFIDE/chartData.cfm) 

So, when i was trying with subdomain.mysite.com, it does find the CFIDE.
(as it was tring to access **(subdomain.mysite.com/CFIDE/chartData.cfm)**...
But when i try to access CFIDE with mysite.com/CFIDE, it was working

(as it was added from the IIS-Server)    

So, i just go to the IIS-Manager and add my CFIDE folder to subdomain.mysite.com

(subdomain.mysite.com/CFIDE)    

And it worked...:)