1

Topic: Ajax - why it is not fulfilled in IE 11?

In Ajax the beginner - I read, I fulfill examples. In particular from https://ruseller.com/project.php? id=7 (a lesson 2) the elementary example:

<! doctype html>
<html lang = "ru">
<head>
<title> the Weather forecast </title>
<meta http-equiv = "Content-Type" content = "text/html; charset=utf-8">
<script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"> </script>
<script>
$(function ()
{
$(' #getForecast ').click (function ()
{
var data = {city: "Vasyuki", date: "20120318"};
$.post ("getForecast.txt", data, success, "json");//getForecast.txt lies in the same directory
});
function success (forecastData)
{
var forecast = forecastData.city + "the forecast on" + forecastData.date;
forecast + = ":" + forecastData.forecast + ". The maximum temperature:"
+ forecastData.maxTemp + "C";
alert (forecast);
}
});
</script>
</head>
<body>
<button id = "getForecast"> to Receive a weather forecast </button>
</body>
</html>

In Edge, FireFox all works irreproachably, and IE 11 after pushing but the button - the full silence. What is the matter? Itself silently I suspect that it is connected to adjustments of safety of the browser, but there it is so much buttons and ticks that the roof goes! Who can that prompts.
Yours faithfully

2

Re: Ajax - why it is not fulfilled in IE 11?

ValGer;
By the way, installed now Google Chrome - too does not work and in it.

3

Re: Ajax - why it is not fulfilled in IE 11?

ValGer;
In debug  that?

4

Re: Ajax - why it is not fulfilled in IE 11?

Isokerf;
Yes is not present! Simply I launch a file from a disk in this or that browser.

5

Re: Ajax - why it is not fulfilled in IE 11?

ValGer;
Well and in the console that  what errors fall out?

6

Re: Ajax - why it is not fulfilled in IE 11?

ValGer wrote:

the Isokerf;
Yes is not present! Simply I launch a file from a disk in this or that browser.

What "is not present"?
In the debug console of a browser that?
And examples it is more convenient in https://jsfiddle.net to do

7

Re: Ajax - why it is not fulfilled in IE 11?

Tear on IIS and check up, most likely in  at you, time locally you stick on a file

8

Re: Ajax - why it is not fulfilled in IE 11?

Konst_One wrote:

tear on IIS and check up, most likely in  at you, time locally you stick on a file

Not absolutely understood that you mean, but looked at the IIS - this service generally sleeps (at me Win 10). Can show on a screenshot where what ticks need to be delivered.
Yours faithfully

9

Re: Ajax - why it is not fulfilled in IE 11?

ValGer;
In the browser you press F12, you look that happens, when press on Button.

10

Re: Ajax - why it is not fulfilled in IE 11?

DarkMaster wrote:

ValGer;
In the browser you press F12, you look that happens, when press on Button.

Yes in that all and focus that happens nothing - is silent as the guerrilla!