Mapping page blank after upload
-
Mapping page is blank after file upload . No errors shown even after setting “On” in index.php. There are 2 error in Firebug console
***************************************************************************
First Error
***************************************************************************
TypeError: document.getElementById(…) is null
var checkmodule = document.getElementById(‘checkmodule’).value;ultimat…r=4.0.1 (line 3, col 21)
***************************************************************************
This is code in when i click “ultimat…r=4.0.1 (line 3, col 21)”jQuery( document ).ready(function() {
jQuery(‘.dropdown-toggle’).dropdown(‘toggle’);
var checkmodule = document.getElementById(‘checkmodule’).value;
if(checkmodule != ‘dashboard’ && checkmodule != ‘filemanager’ && checkmodule !=’support’ && checkmodule !=’export’) {
var get_log = document.getElementById(‘log’).innerHTML;
if (!jQuery.trim(jQuery(‘#log’).html()).length) {
document.getElementById(‘log’).innerHTML = ‘<p style=”margin:15px;color:red;”>NO LOGS YET NOW.</p>’;
}*************************************************************************
Second Error
************************************************************************
TypeError: document.getElementById(…) is null
var get_module = document.getElementById(‘checkmodule’).value;dashcha…r=4.0.1 (line 2, col 17)
**************************************************************************
This is the code when I click dashcha…r=4.0.1 (line 2, col 17)jQuery( document ).ready(function() {
var get_module = document.getElementById(‘checkmodule’).value;
if(get_module == ‘dashboard’) {
pieStats();
lineStats();
}
});
function pieStats()
{
jQuery.ajax({
type: ‘POST’,
url: ajaxurl,
data: {
‘action’ : ‘firstchart’,
‘postdata’ : ‘firstchartdata’,
},
dataType: ‘json’,
cache: false,
success: function(data) {
var browser = JSON.parse(data);
if (browser[‘label’] == ‘No Imports Yet’) {
document.getElementById(‘pieStats’).innerHTML = “<h2 style=’color: red;text-align: center;padding-top: 100px;’ >No Imports Yet</h2>”;
return false;
}jQuery(‘#pieStats’).highcharts({
chart: {
type: ‘pie’,
options3d: {
enabled: true,
alpha: 45,
beta: 0
}
},
title: {
text: ”
},
tooltip: {
pointFormat: ‘{series.name}: <b>{point.percentage:.1f}%</b>’
},
plotOptions: {
pie: {
allowPointSelect: true,
cursor: ‘pointer’,
depth: 35,
dataLabels: {
enabled: true,
format: ‘{point.name}’
}
}
},
series: [{
type: ‘pie’,
name: ‘overall statistics’,
// data: JSON.parse(data),
data: browser
}]
});
}
});
}
function lineStats()
{
jQuery.ajax({
type: ‘POST’,
url: ajaxurl,
data: {
‘action’ : ‘secondchart’,
‘postdata’ : ‘secondchartdata’,
},
dataType: ‘json’,
cache: false,
success: function(data) {
var val = JSON.parse(data);
var line = [val[0],val[1],val[2],val[3],val[4],val[5]];
jQuery(‘#lineStats’).highcharts({
title: {
text: ”,
x: -5 //center
},
subtitle: {
text: ”,
x: -5
},
xAxis: {
categories:val.cat
},
yAxis: {
title: {
text: ‘Import (Nos)’
},
plotLines: [{
value: 0,
width: 1,
color: ‘#808080’
}]
},
tooltip: {
valueSuffix: ‘ Nos’
},
legend: {
layout: ‘vertical’,
align: ‘right’,
verticalAlign: ‘middle’,
borderWidth: 0
},
series:line });
}
});
}
The topic ‘Mapping page blank after upload’ is closed to new replies.