我正在尝试运行包含适用于IE 11的VBScript的html页面。 我拿了这段可能正常工作的代码,试图运行它。但是,IE11检查器始终突出显示以下错误:
SCRIPT458:变量使用VBScript中不支持的自动化类型:' bl.A'
由于此错误代码,我发现错误与指令有关:
设置bl.A(arg1,2)= s
我在同一页面的javascript调用中调用vbscript函数function ReviewForm() {
room++;
var objTo = document.getElementById('ReviewForm')
var divtest = document.createElement("div");
divtest.setAttribute("class", "form-group removeclass" + room);
var rdiv = 'removeclass' + room;
divtest.innerHTML = '<hr>' +
'<h2>Student:</h2>' +
'<select>' +
'<option value="Adam">Adam</option> ' +
'<option value="Bob">Bob</option> ' +
'<option value="Corey">Corey</option>' +
'</select></h2>' +
'<div class="table-wrapper">' +
'<table>' +
'<thead>' +
'<tr>' +
'<th>Motivation/general attitude</th>' +
'<th>Educational initiative & Scholarship</th>' +
'<th>Understanding of course material</th>' +
'<th>Ability to apply course material</th>' +
'<th>Oral English expression skills</th>' +
'<th>Written English expression skills</th>' +
'<th>Ability to analyze/integrate/apply</th>' +
'<th>Ethical standards & integrity</th>' +
'<th>Respect for diversity</th>' +
'</tr>' +
'</thead>' +
'<tbody>' +
'<tr>' +
'<td>' +
'<select>' +
' <option value="" selected="selected">Select...</option>' +
' <option value="1">1</option>' +
'<option value="2">2</option>' +
' <option value="3">3</option>' +
' <option value="4">4</option>' +
' <option value="5">5</option>' +
' </select>' +
' </td>' +
'<td>' +
'<select>' +
' <option value="" selected="selected">Select...</option>' +
' <option value="1">1</option>' +
'<option value="2">2</option>' +
' <option value="3">3</option>' +
' <option value="4">4</option>' +
' <option value="5">5</option>' +
' </select>' +
' </td>' +
'<td>' +
'<select>' +
' <option value="" selected="selected">Select...</option>' +
' <option value="1">1</option>' +
'<option value="2">2</option>' +
' <option value="3">3</option>' +
' <option value="4">4</option>' +
' <option value="5">5</option>' +
' </select>' +
' </td>' +
'<td>' +
'<select>' +
' <option value="" selected="selected">Select...</option>' +
' <option value="1">1</option>' +
'<option value="2">2</option>' +
' <option value="3">3</option>' +
' <option value="4">4</option>' +
' <option value="5">5</option>' +
' </select>' +
' </td>' +
'<td>' +
'<select>' +
' <option value="" selected="selected">Select...</option>' +
' <option value="1">1</option>' +
'<option value="2">2</option>' +
' <option value="3">3</option>' +
' <option value="4">4</option>' +
' <option value="5">5</option>' +
' </select>' +
' </td>' +
'<td>' +
'<select>' +
' <option value="" selected="selected">Select...</option>' +
' <option value="1">1</option>' +
'<option value="2">2</option>' +
' <option value="3">3</option>' +
' <option value="4">4</option>' +
' <option value="5">5</option>' +
' </select>' +
' </td>' +
'<td>' +
'<select>' +
' <option value="" selected="selected">Select...</option>' +
' <option value="1">1</option>' +
'<option value="2">2</option>' +
' <option value="3">3</option>' +
' <option value="4">4</option>' +
' <option value="5">5</option>' +
' </select>' +
' </td>' +
'<td>' +
'<select>' +
' <option value="" selected="selected">Select...</option>' +
' <option value="1">1</option>' +
'<option value="2">2</option>' +
' <option value="3">3</option>' +
' <option value="4">4</option>' +
' <option value="5">5</option>' +
' </select>' +
' </td>' +
'<td>' +
'<select>' +
' <option value="" selected="selected">Select...</option>' +
' <option value="1">1</option>' +
'<option value="2">2</option>' +
' <option value="3">3</option>' +
' <option value="4">4</option>' +
' <option value="5">5</option>' +
' </select>' +
' </td>' +
' </tr>' +
' </tbody>' +
' <tfoot>' +
' </tfoot>' +
' </table>' +
//If I add the next chunk of code to the function, it breaks the functionality of the JS on the page
/* '<div style='display:none;' id='business'>'+
'<input type='text' class='text' name='business' placeholder="You gave a rating of less than 3 in one or more categories. Please provide a brief explination as to why." />'+
'<br/>'+
'</div>'+*/
'</div>'
objTo.appendChild(divtest)
}
。相关的源代码如下:
getAddr
我真的不知道如何解决这个问题...你有什么线索吗? 非常感谢提前。