Embed Api Third Party Visualization > Uncaught Typeerror: Cannot Set Property 'innerhtml' Of Null (cb=gapi.loaded_0:139)
First of all, I would like to apologize about my poor web programming skill. I'm still new to Javascript. Here is my problem : I get an Uncaught TypeError while trying to reproduce
Solution 1:
There are possibly more cases of this error in that block of code but this is the first one I came across:
var title = document.getElementById('view-name');
title.innerHTML = data.property.name + ' (' + data.view.name + ')';
This will cause the "Cannot set property 'innerHTML' of null" error because you don't have an element on the page with the id of 'view-name', therefore title = null when you are calling innerHTML on it.
Post a Comment for "Embed Api Third Party Visualization > Uncaught Typeerror: Cannot Set Property 'innerhtml' Of Null (cb=gapi.loaded_0:139)"