Home > Web Front-end > JS Tutorial > Quickly solve the problem of Chinese garbled characters in FusionCharts linkage_javascript skills

Quickly solve the problem of Chinese garbled characters in FusionCharts linkage_javascript skills

WBOY
Release: 2016-05-16 17:11:01
Original
1031 people have browsed it

Question content:

When using fusioncharts, you may want to click on a part of the Chart on a page such as demo.html, and then display the details of this part.

Fusioncharts has setDataXML and setDataURL. These two methods are used to set data. However, there will be garbled code problems (which may occur in AJAX situations). Children's shoes that have been used should understand.

I won’t elaborate on the specific details.

How to deal with it.

If the return content of your Ajax request is garbled, use Jquery.ajax directly.

Copy the code The code is as follows: >
function mychartclick(month) {
var id =1;
var d = new Date();

var strURL='xxxx'

jQuery.ajax({


data: strURL,
success: function (data) {

var chartObj = getChartFromId("my id" ); The content is fine. }

});
}


Literal is gone ..

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template