qingyangmoke / explorercanvas

Explorercanvas (excanvas.js) is an open source, Apache-licensed JavaScript library that implements the canvas API in Internet Explorer
Apache License 2.0
0 stars 0 forks source link

jquery.ajax function #121

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I use excanvas.js the jquery.ajax we are using to fetch information from 
server doesn't seems to work.

Below is the code:

jQuery.ajax
    ({
        url: "/acc/services/json/openServices/skylinereport.json/"+userid+"/"+sval+"/"+skylinename,
        type:"GET",
        dataType:'json',
        cache: false,
        success: function(data)
        {
                },
        complete:function(){
            $("#loader").hide();
        },
        beforeSend:function(){
            $("#loader").show();
        }

The page is struck with beforeSend function and it is showing the loader image. 
It still works with chrome

I am using IE 8.

Is this a know issue?

Original issue reported on code.google.com by m.zahida...@gmail.com on 13 Jun 2012 at 6:24

GoogleCodeExporter commented 9 years ago
Ok done a bit of debugging and found that it's not ajax function which is not 
working instead it is "context.fillText" and "context.measureText":

context.fillText(name, startX + (i * barWidth) + i, chartHeight + 10, 200);
context.measureText(testLine);

It is showing "Object doesn't support this property or method". When I removed 
these two it is working properly but obviously axes are not having texts now :( 
... please help me out 

Original comment by m.zahida...@gmail.com on 13 Jun 2012 at 7:02

GoogleCodeExporter commented 9 years ago
ok resolved by using the excanvas.js code from svn trunk. For those who dont 
know you can get the latest svn trunk code from :

http://explorercanvas.googlecode.com/svn/trunk/excanvas.js

Original comment by m.zahida...@gmail.com on 13 Jun 2012 at 10:25