• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Coldfusion.setGlobalError handler Issue

Participant ,
Dec 17, 2008 Dec 17, 2008

Copy link to clipboard

Copied

I am Currently using Cfdiv to load the contents and there after i am using the cfchart in the

same cfdiv using Ajaxlink to load the cfchart and show statistical dta in flash format. Well it

works somewhat on chrome/firefox but not in other browsers. I searched a lot and found that there

is no workaroud to fix this yet?..

One solution i found that use jpg and then decode it using binary to show data but that seems

extra trival task.

So i found 1 solution to use the coldfusion.setglobalerrorHandler.

in my graph.cfm

i am using the function as:
<cfajaximport>
<script>
ColdFusion.setGlobalErrorHandler(function(error){
if(typeof console != "undefined"){
console.log(error);
} else {
alert(error);
}
});
</script>
i added this script inn the file called graph.cfm
but it does not seem to work...

is something wrong i am doing..

TOPICS
Advanced techniques

Views

331

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Participant , Dec 18, 2008 Dec 18, 2008
Thanks Azadi

Votes

Translate

Translate
LEGEND ,
Dec 18, 2008 Dec 18, 2008

Copy link to clipboard

Copied

add it to your main page that displays grap.cfm in cfdiv.
and shorthand for cfajaximport is <cfajaximport/>.
and it should be n your main page, too, if you need it at all...

and i find it no extra hassle to do
<cfchart type="png" name="mychart" ...>
<cfchartseries ...>
</cfchart>
at the top of a page, and then later in code use
<cfimage action="writetobrowser" source="#mychart#">
to display the chart image.
works a treat all the time...


Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Dec 18, 2008 Dec 18, 2008

Copy link to clipboard

Copied

LATEST
Thanks Azadi

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation