<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; HTA:Реально ли использовать websocket?]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=14171</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14171&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «HTA:Реально ли использовать websocket?».]]></description>
		<lastBuildDate>Mon, 17 Sep 2018 00:50:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: HTA:Реально ли использовать websocket?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=128735#p128735</link>
			<description><![CDATA[<p>Да, так работает. Спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (bitcoin)]]></author>
			<pubDate>Mon, 17 Sep 2018 00:50:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=128735#p128735</guid>
		</item>
		<item>
			<title><![CDATA[Re: HTA:Реально ли использовать websocket?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=128724#p128724</link>
			<description><![CDATA[<p>Попробуйте в заголовок вставить &quot;<em>&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt;</em>&quot;<br />Вот так:<br /></p><div class="codebox"><pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;&lt;title&gt;WS&lt;/title&gt;
&lt;meta http-equiv=&quot;X-UA-Compatible&quot; content=&quot;IE=edge&quot; /&gt;
&lt;script&gt;
function wss()
...
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Spy00000)]]></author>
			<pubDate>Sun, 16 Sep 2018 15:16:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=128724#p128724</guid>
		</item>
		<item>
			<title><![CDATA[Re: HTA:Реально ли использовать websocket?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=128722#p128722</link>
			<description><![CDATA[<p>Пример взят с javascript.ru , с небольшой переработкой . <br /></p><div class="codebox"><pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;&lt;title&gt;WS&lt;/title&gt;
&lt;script&gt;
function wss()
{
// создать подключение
var socket = new WebSocket(&quot;ws://localhost:8081&quot;);

// отправить сообщение из формы publish
document.forms.publish.onsubmit = function() {
  var outgoingMessage = this.message.value;

  socket.send(outgoingMessage);
  return false;
};

// обработчик входящих сообщений
socket.onmessage = function(event) {
  var incomingMessage = event.data;
  showMessage(incomingMessage);
};

// показать сообщение в div#subscribe
function showMessage(message) {
  var messageElem = document.createElement(&#039;div&#039;);
  messageElem.appendChild(document.createTextNode(message));
  document.getElementById(&#039;subscribe&#039;).appendChild(messageElem);
}
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body onload=&quot;wss();&quot;&gt;
&lt;!-- форма для отправки сообщений --&gt;
&lt;form name=&quot;publish&quot;&gt;
  &lt;input type=&quot;text&quot; name=&quot;message&quot;&gt;
  &lt;input type=&quot;submit&quot; value=&quot;Отправить&quot;&gt;
&lt;/form&gt;

&lt;!-- здесь будут появляться входящие сообщения --&gt;
&lt;div id=&quot;subscribe&quot;&gt;&lt;/div&gt;
&lt;/body&gt;&lt;/html&gt;</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (bitcoin)]]></author>
			<pubDate>Sun, 16 Sep 2018 15:01:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=128722#p128722</guid>
		</item>
		<item>
			<title><![CDATA[Re: HTA:Реально ли использовать websocket?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=128708#p128708</link>
			<description><![CDATA[<div class="quotebox"><cite>bitcoin пишет:</cite><blockquote><p>С другой - если запустить обычный хтмл файл с вебсокетами в интернет эксплорере, все работает.</p></blockquote></div><p>Покажите полное содержимое Вашего «обычного хтмл файла с вебсокетами».</p>]]></description>
			<author><![CDATA[null@example.com (alexii)]]></author>
			<pubDate>Sun, 16 Sep 2018 05:18:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=128708#p128708</guid>
		</item>
		<item>
			<title><![CDATA[HTA:Реально ли использовать websocket?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=128707#p128707</link>
			<description><![CDATA[<p>Собственно, вопрос. Реально ли написать hta приложение, которое будет использовать вебсокет?<br />С одной стороны, WSH не может знать о более новых технологиях (имею ввиду 7 винду и ниже).<br />С другой - если запустить обычный хтмл файл с вебсокетами в интернет эксплорере, все работает. Но, когда переименовываю файл на хта, не работает, пишет что неизвестный объект websocket.</p>]]></description>
			<author><![CDATA[null@example.com (bitcoin)]]></author>
			<pubDate>Sun, 16 Sep 2018 02:06:36 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=128707#p128707</guid>
		</item>
	</channel>
</rss>
