Temperaturwerte im Webfront aktualisieren ohne Refresh (Problem mit Firefox)

Hallo zusammen,

ich habe mir für das Webfornt eine externe Seite erstellt. In dieser werden Temperaturwerte angezeigt und in bestimmten Intervallen aktualisiert. Im Opera klappt das ganze nur im Firefox und Google Chrome funzt es nicht.

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 

<script type="text/javascript" src="script/dojo.js" djConfig=""></script>

<script type="text/javascript">
    var refreshPeriodically = function (node, url, interval) { dojo.addOnLoad( function () { var req = function () { dojo.xhrGet( { url: url, node: dojo.byId(node), load: function (data, xhr) { if (xhr.args.node) { xhr.args.node.innerHTML = data; } } } ); }; req(); window.setInterval(req, interval); }); }; 
    
    refreshPeriodically("holzofen", "include/getIPSValue.php?id=55063", 10000);
	refreshPeriodically("kaminruecklaufoben", "include/getIPSValue.php?id=50849", 10000);
	refreshPeriodically("kaminruecklaufunten", "include/getIPSValue.php?id=57616", 10000);
	refreshPeriodically("kaminruecklaufrechts", "include/getIPSValue.php?id=31069", 10000);
	refreshPeriodically("pufferh", "include/getIPSValue.php?id=52065", 10000);
	refreshPeriodically("puffero", "include/getIPSValue.php?id=40991", 10000);
	refreshPeriodically("pufferu", "include/getIPSValue.php?id=46912", 10000);
	refreshPeriodically("wwpuffer", "include/getIPSValue.php?id=58532", 10000);
	refreshPeriodically("oelvorlauf", "include/getIPSValue.php?id=57745", 10000);
	refreshPeriodically("oelruecklauf", "include/getIPSValue.php?id=53947", 10000);
	refreshPeriodically("solarv", "include/getIPSValue.php?id=28403", 10000);
	refreshPeriodically("solarr", "include/getIPSValue.php?id=38070", 10000);
	refreshPeriodically("heizkoerperv", "include/getIPSValue.php?id=56030", 10000);
	refreshPeriodically("heizkoerperr", "include/getIPSValue.php?id=28093", 10000);
	refreshPeriodically("warmwasserv", "include/getIPSValue.php?id=46834", 10000);
	refreshPeriodically("warmwasserr", "include/getIPSValue.php?id=46818", 10000);
	refreshPeriodically("heizkoerperv", "include/getIPSValue.php?id=56030", 10000);
	refreshPeriodically("flamme", "include/grafik_update.php?id=55063", 10000);
</script>

<link href="css/meinwebfront.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div id="container">

<div id="heizung">

<span id="pufferh"></span><br />
<span id="puffero"></span><br />
<span id="pufferu"></span><br />
<span id="wwpuffer"></span><br />
<span id="solarv"></span><br />
<span id="solarr"></span><br />
<span id="holzofen"></span><br />
<span id="heizkoerperv"></span><br />
<span id="heizkoerperr"></span><br />
<span id="warmwasserv"></span><br />
<span id="warmwasserr"></span><br />
<span id="oelvorlauf"></span><br />
<span id="oelruecklauf"></span><br />
<span id="kaminruecklaufoben"></span><br />
<span id="kaminruecklaufunten"></span><br />
<span id="kaminruecklaufrechts"></span><br />

<span id="flamme"></span><br />
<!-- end .heizung --></div>

<!-- end .container --></div>
</body>
</html>

get.IPSValue.php

<?php
	$floatNumber = GetValueFloat((float)$_GET['id']);
	$formattedNumber = sprintf("%4.1f °C", $floatNumber); // wandelt z.B. 21.478 nach "21,5"
	echo $formattedNumber;
?> 

Könnt Ihr hier einen Fehler erkennen? Verstehe einfach nicht warum das nicht klappen will.

Wäre euch sehr dankbar.

Grüße

Einfacher ist, wenn du uns die Fehlermeldungen in der Konsole zeigst. (Chome = Entwicklerkonsole, FireFox = FireBug)

paresy

Hallo Paresy,

ok, in der Console von Google Chrome unter Fehler steht das:

Viewport argument value "device-width;" for key "width" not recognized. Content ignored. 192.168.2.93:13
Viewport argument value "1.0;" for key "initial-scale" was truncated to its numeric prefix. 192.168.2.93:13
Viewport argument value "1.0;" for key "maximum-scale" was truncated to its numeric prefix. 192.168.2.93:13
Viewport argument value "0;" for key "user-scalable" was truncated to its numeric prefix. 192.168.2.93:13
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=55063. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=50849. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=57616. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=31069. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=52065. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=40991. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=46912. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=58532. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=57745. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=53947. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=38070. Cannot make any requests from null.
2XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=56030. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=28403. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=46834. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=28093. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/grafik_update.php?id=55063. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=46818. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=55063. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=52065. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=50849. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=40991. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=31069. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=57616. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=58532. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=57745. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=53947. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=46912. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=28403. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=46818. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=46834. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=38070. Cannot make any requests from null.
2XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=56030. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=28093. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/grafik_update.php?id=55063. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=52065. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=55063. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=31069. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=50849. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=57616. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=53947. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=46912. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=57745. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=58532. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=40991. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=38070. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=28093. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=28403. Cannot make any requests from null.
2XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=56030. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=46818. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/getIPSValue.php?id=46834. Cannot make any requests from null.
XMLHttpRequest cannot load http://192.168.2.93:82/user/include/grafik_update.php?id=55063. Cannot make any requests from null.

In der Firebug Console steht unter Fehler nur,Firebugs Protokollimt erreicht. 394 Einträge werden nicht angezeigt?

Ein kleiner Auszug aus dem Punkt ALLE

SyntaxError: 09 is not a legal ECMA-262 octal constant
[Bei diesem Fehler anhalten] 	

...1,16,09,44,37),42],[Date.UTC(2012,11,16,09,44,53),42],[Date.UTC(2012,11,16,09,45...

IPS_Te...d=47672 (Zeile 28, Spalte 60)
	

SyntaxError: 09 is not a legal ECMA-262 octal constant
[Bei diesem Fehler anhalten] 	

...1,16,09,44,53),42],[Date.UTC(2012,11,16,09,45,09),42],[Date.UTC(2012,11,16,09,45...

IPS_Te...d=47672 (Zeile 28, Spalte 60)
	

SyntaxError: 09 is not a legal ECMA-262 octal constant
[Bei diesem Fehler anhalten] 	

...9,44,53),42],[Date.UTC(2012,11,16,09,45,09),42],[Date.UTC(2012,11,16,09,45,27),4...

Könnt Ihr damit was anfangen oder braucht Ihr andere Daten oder mehr?

Danke schon mal.

Grüße

Ich an deiner Stelle, würde jquery und dojo nicht mischen. Abfrage machst Du ja über dojo, also nimm das jquery raus.

Du rufst es bestimmt als externe Seite im WebFront auf und das dort vorhandene Sandboxing spuckt dir in die Suppe. Such mal im Forum wie du das im WebFront „aushebeln“ kannst.

paresy

RWN
Ich an deiner Stelle, würde jquery und dojo nicht mischen. Abfrage machst Du ja über dojo, also nimm das jquery raus.

Ok werde ich mal rausnehmen und schauen.

paresy
Du rufst es bestimmt als externe Seite im WebFront auf und das dort vorhandene Sandboxing spuckt dir in die Suppe. Such mal im Forum wie du das im WebFront „aushebeln“ kannst.

paresy 

Nach was genau muss ich da suchen. Was meinst du mit Sandboxing?

Komisch finde ich halt das es im Opera geht. Aber im Firefox und Chrome gehts nicht.

Grüße

Ok danke für den Hinweis mit dem Sandboxing.
Habe jetzt nochmal gesucht und glatt was gefunden.

Damit funktioniert das Ganze auch im Firefox und im Chrome! :slight_smile:

Danke Paresy

Grüße