[英]How to resolve 0x800a1391 - Microsoft JScript runtime error in IE
I know there are several posts on this topic but I couldn't find one that answers my question so allow me to indulge you a little. 我知道有几篇关于该主题的文章,但是找不到能回答我问题的文章,所以请允许我向您介绍一下。
Mine is a simple HTML5 project, fetching data from ASP.NET WebForm (VB.NET 2010/2012) and having Javascript read the values off a variable like this: 我的是一个简单的HTML5项目,可从ASP.NET WebForm(VB.NET 2010/2012)获取数据,并使用Javascript从变量中读取值,如下所示:
var myBSValues = BSValues.value; //Code fails / breaks here with the error above
BSValues is a HiddenField control in ASP.NET WebForm that gets assigned a string value in the page as follows: BSValues是ASP.NET WebForm中的一个HiddenField控件,该控件在页面中分配了一个字符串值,如下所示:
Me.BSValues.value = "Hello World, A new World, Going to Heaven"
In JavaScript, I split the text at the commas (,) to create an array which I use to create a dynamic table and populate its cells for display. 在JavaScript中,我使用逗号(,)分割文本以创建一个数组,该数组用于创建动态表并填充其单元格以供显示。
I believe that is a simple enough solution and a simple explanation of it. 我相信这是一个足够简单的解决方案,并且对其进行了简单的解释。 Good news is the procedure works in: 好消息是该程序适用于:
but fails in: 但失败:
I think there is a large user base on IE so I would really like to make it work for IE. 我认为IE具有庞大的用户群,因此我真的很想使其适用于IE。
Thanks for your time. 谢谢你的时间。
也许像
var myBSValues = document.getElementById("BSValues").value;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.