<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[SDS PLC/PAC: Měření Energie & OnlineTechnology.cz - user.htm]]></title>
		<link>https://forum.sds.an-d.cz/viewtopic.php?id=429</link>
		<atom:link href="https://forum.sds.an-d.cz/extern.php?action=feed&amp;tid=429&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Nejnovější příspěvky v user.htm.]]></description>
		<lastBuildDate>Wed, 10 Apr 2013 16:56:30 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: user.htm]]></title>
			<link>https://forum.sds.an-d.cz/viewtopic.php?pid=3501#p3501</link>
			<description><![CDATA[<p>tak konecne hotovo kdyby to nekdo potreboval<br />&lt;script&gt;<br />function ulozteplotu() {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var x = (window.ActiveXObject) ? new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;) : new XMLHttpRequest();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var url=&quot;/get_&quot;;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url=url+&quot;sys[310]&quot;+&quot;&amp;&quot;+Math.random()+&quot;=&quot;+Math.random();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x.open(&quot;GET&quot;, url, true);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x.onreadystatechange = function()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(x.readyState==4 &amp;&amp; x.status==200)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write(x.responseText /100 + &quot;°C&quot;);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x.open(&quot;GET&quot;, url, true);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x.send(null);<br />}<br />var teplota=(ulozteplotu());<br />document.write(teplota); // to je jenom kontrola<br />&lt;/script&gt;</p>]]></description>
			<author><![CDATA[null@example.com (vkalina)]]></author>
			<pubDate>Wed, 10 Apr 2013 16:56:30 +0000</pubDate>
			<guid>https://forum.sds.an-d.cz/viewtopic.php?pid=3501#p3501</guid>
		</item>
		<item>
			<title><![CDATA[Re: user.htm]]></title>
			<link>https://forum.sds.an-d.cz/viewtopic.php?pid=3496#p3496</link>
			<description><![CDATA[<p>Tak uz to mam, ale jenom pro zobrazeni jako funkci, ted musim vymyslet jak to zpracovat aby to prebehlo pred vlastnim zpracovanim stranky</p><p>&lt;script&gt;</p><p>var x = (window.ActiveXObject) ? new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;) : new XMLHttpRequest();<br />var url=&quot;/get_&quot; ;<br />url=url+&quot;sys[310]&quot;+&quot;&amp;&quot;+Math.random()+&quot;=&quot;+Math.random();<br />x.open(&quot;GET&quot;, url, true);<br />x.onreadystatechange = function()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(x.readyState==4 &amp;&amp; x.status==200)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Tady muzem vlozit do aktualni stranky vracenout hodnotu<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // napr. document.getElementById(&quot;realizace&quot;).innerHTML=x.responseText<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //alert(x.responseText /100);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; document.write(x.responseText /100 + &quot;°C&quot;) ;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p>x.send(null);<br />&lt;/script&gt;<br />&lt;/body&gt;</p>]]></description>
			<author><![CDATA[null@example.com (vkalina)]]></author>
			<pubDate>Wed, 10 Apr 2013 15:08:22 +0000</pubDate>
			<guid>https://forum.sds.an-d.cz/viewtopic.php?pid=3496#p3496</guid>
		</item>
		<item>
			<title><![CDATA[user.htm]]></title>
			<link>https://forum.sds.an-d.cz/viewtopic.php?pid=3490#p3490</link>
			<description><![CDATA[<p>Nebyl by někdo schopnej sem dát co nejjednodušší javascript na jednorázové vyčtení proměnné třeba sys[310] ale hlavně bez smyček, tak aby se hodnota sys(310) načetla do proměnné. Funkci na uložení do uzivatelske proměnné sys[140] jsem uz spachal</p><p>Tady je</p><p>function nastavteplotudoma() {<br />d = prompt(&quot;Zadej domácí teplotu&quot;, &quot;&quot;);<br />if(d &gt; 5 &amp;&amp; d &lt; 40){<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var x = (window.ActiveXObject) ? new ActiveXObject(&quot;Microsoft.XMLHTTP&quot;) : new XMLHttpRequest();<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var url=&quot;sdscep&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; url=url+&quot;?sys140=&quot;+d+&quot;&amp;&quot;+Math.random()+&quot;=&quot;+Math.random()</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(x == null)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&quot;OOooops, Ajax se zakoktal.&quot;)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x.onreadystatechange = function()<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(x.readyState==4 &amp;&amp; x.status==200)<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Tady muzem vlozit do aktualni stranky vracenout hodnotu<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // document.getElementById(&quot;realizace&quot;).innerHTML=x.responseText<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; alert(&#039;Skript vratil retezec: &#039; + x.responseText);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp;}</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x.open(&quot;GET&quot;, url, true);<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; x.send(null);<br />&nbsp; &nbsp; }<br />else{<br />&nbsp; &nbsp; alert(&quot;Teplotu lze měnit v rozsahu 5 až 40°C&quot;);<br />&nbsp; &nbsp; }<br />}</p><br /><p>Jak z toho jednorazove dostat data ale jeste nemam<br />pokousel jsem se to slatat z dema, ale nejak se mi to nedari.</p><p>Diky za pomoc<br />Venca</p>]]></description>
			<author><![CDATA[null@example.com (vkalina)]]></author>
			<pubDate>Tue, 09 Apr 2013 17:22:32 +0000</pubDate>
			<guid>https://forum.sds.an-d.cz/viewtopic.php?pid=3490#p3490</guid>
		</item>
	</channel>
</rss>
