Всем привет!
Заметил, что почти на счех сайта выскакивает ошибка JavaScript:
——————————————————————-
Сведения об ошибке на веб-странице
Сообщение: ‘JSON’ — определение отсутствует
Строка: 418
Символ: 6
Код: 0
URI-код: http://www.yandex.ru/
——————————————————————-
Не пойму, что это.
Браузер IE, 8.0.6001.
Выглядит это так: сайт полностью прогружается, а потом указатель мыши дергается, как будто что-то догружается, и тут же вылетает эта ошибка. Причем, тоже самое почти для всех сайтов, та же самая строка и символ.
Интересно, что для сайта SE этого нет.
Кто нибудь сталкивался? Может это какая надстройка?
Помогите плиз разобраться.
Forum Rules |
|
Выполняю код.
//_ТекстСкрипта;
Скрипт = СоздатьОбъект(«MSScriptControl.ScriptControl»);
Скрипт.Language = «JScript»;
Скрипт.AddCode(_ТекстСкрипта);
Скрипт.Run(«init»);
ТекстСкрипта равен
var socket;
var isConnect = false;
function errorConnectDefault(data) { alert(data);}
var errorConnectCallBack = errorConnectDefault;
function init() {
connectTumSocket1(«7kaIenL3KzdAEgPVeXqtgOPwJEPTm558GMesUET+60JKxNzwG0JcEl97Vs+jE/A8WAzDGr1xkYoPvbaHGYVRDw==», function (event) {
var options = {«apiKey»: «86be88c8437850fbf008f92fa0481423-76dc611d-0b1f-843f»};
// CheckAPIKey(options, function (event) {
// var data = JSON.parse(event.data);
})
});
}
function connectTumSocket1(apiKey, callback) {
socket = new WebSocket(«ws://localhost:6126/tumarcsp/»);
socket.onopen = function(){
isConnect = true;
var options = {
«apiKey»:apiKey
};
// SetAPIKey(options, callback);
}
socket.onclose = function(){
isConnect = false;
}
socket.onerror = function(event){
}
}
Выходит ошибка:
Ошибка выполнения Microsoft JScript: ‘WebSocket’ — определение отсутствует
Подскажите, плиз, что нужно сделать?
We are using jQuery in our application. We have used a jQuery plugin to implement JavaScript session.
It is working properly in Firefox and most Internet Explorer 8 browsers.
But in some Internet Explorer 8 browsers it does not work. It gives the following error.
Message: 'JSON' is undefined
Line: 6
Char: 3
Code: 0
Message: '$.namesession' is null or not an object
Line: 53
Char: 2
Code: 0
`
The version of Internet Explorer in both the cases is same.
But there were some differences in Internet Explorer settings like Use SSL3.0 and Enable Smart Screen filters check boxes in the Advanced tab in the Internet options were unchecked.
When we checked it, it started working. When we unchecked them it was still working.
What is the actual problem in IE8?
добрый вечер.
помогите пожалуйста
есть скрипт
for (var k = 1; k < i; k++) { if (document.getElementById('col1_'+ k) == null) { continue; } arrObjects.push({ row: k, number: document.getElementById('col1_'+ k).title , number_in: document.getElementById('col2_' +k).title, list: document.getElementById('col3_'+ k).title , warehouse: document.getElementById('col4_' +k).title, count: document.getElementById('col5_'+ k).title , price_purch: document.getElementById('col6_' +k).title, price_retail: document.getElementById('col7_'+ k).title, id: document.getElementById('field_id_0').value } ); } $.ajax({ type: 'POST', url: '/admin/entity/action2/insertBill.php', dataType: 'json', data: 'arrObjectsBill=' + JSON.stringify(arrObjectsBill), success: function(response) { ... } });
работает во всех браузерах, а в IE пишет
‘JSON’ — определение отсутствует
что делать?
I have use a web browser for my project and I made it load a web page as soon as the program has loaded.
Before I have an error called a script error but i used the code
webBrowser1.ScriptErrorsSuppressed = true;
now that error doesn’t appear no more but i’m still getting the problem with the loading of a web page
I attached pictures below on what i’m having issue with.
Here is what the website i was to load looks like
Here is The Problem i’m getting
Is there a fix or an addon to visual studios to use a different web browser
- javascript
- c#
nnnnnn
147k30 gold badges199 silver badges239 bronze badges
asked Mar 26, 2016 at 19:31
Ben HBen H
12 bronze badges
6
-
Disconnecting the «check engine» light won’t stop your engine from overheating…
Mar 26, 2016 at 19:45
-
How will I fix them don’t know what causing them
Mar 26, 2016 at 19:47
-
Sorry What are you on about «check engine » light ?
Mar 26, 2016 at 19:51
-
It’s a metaphor. Anyway, if you don’t suppress the errors, does the browser tell you what the errors are? Check the dev console.
Mar 26, 2016 at 19:54
-
I get this error Click me
Mar 26, 2016 at 20:07
1 Answer
You are embedding Web Browser in Win Forms project… and the browser engine is probably IE8 — it doesn’t have JSON variable used by script. You need to define JSON parser yourself — take a look at this Q&A for more info:
JSON object undefined in Internet Explorer 8
answered Mar 27, 2016 at 1:27
nikib3ronikib3ro
20.3k23 gold badges120 silver badges181 bronze badges