datasource is null or not an object on IE 8

433 views
Skip to first unread message

Dan

unread,
Nov 28, 2011, 6:06:35 AM11/28/11
to google-visua...@googlegroups.com
Hi,

Just noticied that on IE 8 the following error occurs for corecharts:

'datasource' is null or not an object    format+en GB,default,table,corechart.I.js,line 466 character 185

The page works fine on chrome and IE 9 just seems to fail in IE8. Anybody else seen this problem, and know of a fix?

Thanks,
Dan

Roni Biran

unread,
Nov 28, 2011, 7:18:26 AM11/28/11
to google-visua...@googlegroups.com
Add the chrome framework meta tag to your HTML header to emulate chrome and everything will work (hopefully)

<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">



Dan

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-visualization-api/-/Jyr8iSYYYz0J.
To post to this group, send email to google-visua...@googlegroups.com.
To unsubscribe from this group, send email to google-visualizati...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.

Dan

unread,
Nov 28, 2011, 7:44:26 AM11/28/11
to google-visua...@googlegroups.com
That hasn't worked. Added it into the head but still the same problem. Using the IE Developer Tools it gets the same error when using Document Mode IE8 standards.

SCRIPT5007: Unable to get value of the property 'datasource': object is null or undefined 
format+en_GB,default,table,corechart.I.js, line 466 character 185
SCRIPT257: Could not complete the operation due to error 80020101. 
jquery.min.js, line 2 character 12354

Roni Biran

unread,
Nov 28, 2011, 8:52:33 AM11/28/11
to google-visua...@googlegroups.com
can you send a sample of the code?
it looks like there is something miss-configured in your jQuery



--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
Message has been deleted

Dan

unread,
Dec 1, 2011, 1:33:24 PM12/1/11
to google-visua...@googlegroups.com
I think the error was caused by a rogue comma which chrome firefox and IE 9 handled but IE 8 and below did not.

Thanks for your help

Roni Biran

unread,
Dec 1, 2011, 6:37:25 PM12/1/11
to google-visua...@googlegroups.com
Is that case I can only say GOOD LUCK FINDING IT :-)



On 1 בדצמ 2011, at 20:33, Dan <daniel....@gmail.com> wrote:

I think the error was caused by a rogue comma which chrome firefox and IE 9 handled but IE 8 and below did not.

Thanks for your help

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.

Roni Biran

unread,
Dec 1, 2011, 6:44:00 PM12/1/11
to google-visua...@googlegroups.com
Hi Dan,

Sorry for the delay :-)
This is not exactly what I meant.
Can you send a regular sample (not an F12)?





On 1 בדצמ 2011, at 18:31, Dan <daniel....@gmail.com> wrote:

Sorry for the delay Nez, and thanks for the help, let me know if you need more:

<!DOCTYPE html>
<!-- Generated by F12 developer tools. This might not be an accurate representation of the original source file -->
<HTML><HEAD><TITLE>test</TITLE>
<META content=IE=Edge,chrome=1 http-equiv=X-UA-Compatible><LINK rel=stylesheet type=text/css href="http://XXXX/common/css/test.css">
<SCRIPT type=text/javascript src="http://XXXX/common/js/regionalFunctions.js"></SCRIPT>

<!--Load the AJAX API-->
<SCRIPT type=text/javascript src="https://www.google.com/jsapi"></SCRIPT>

<SCRIPT type=text/javascript>
        // Load the Visualization API and the piechart package.
        google.load("visualization", "1", {'packages':['corechart', 'table']});
        var prod = "";var ver = "";        $(function(){
            $("select#codeSel").load("/report/filters.php", 
                {prod:$('select#prodSel option:selected').val(), sel:ver}, 
                function() {
                    $("#report").load("/report/codelineReport2.php",
                        {ver:$('select#codeSel option:selected').val(),
                        prod:$('select#prodSel option:selected').val()});
                });
            $("select#prodSel").change(function(){
                 $("select#codeSel").load("/report/filters.php", {prod:$('select#prodSel option:selected').val()});
            });
            $("select#codeSel").change(function(){
                $("#report").load("/report/codelineReport2.php", 
                    {ver:$('select#codeSel option:selected').val(),
                    prod:$('select#prodSel option:selected').val()});
            });
        })
        </SCRIPT>


--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
Reply all
Reply to author
Forward
0 new messages