CHAT Log Help

Ich habe mal ein neues Konzep aufgestellt:

PHP:
_global.chat = this;
var iv = 0;
var xm = new XML();
xm.ignoreWhite = true;
xm.onLoad = function()
{
	init(this);
}
xm.load("log.php");

function init(obj)
{
	var nod = obj.childNodes[0];
	for(var i = 0;i<nod.length;i++)
	{
		var from = nod[i].attributes.u_name;
		var time = nod[i].attributes.time;
		var message = nod[i].attributes.msg;
		log(from,time,message);
	}
}




function log(from,time,msg)
{
	str += '<font color="red">'+from+'</font>';
	str +=  '<font color="green">['+time+']</font>';
	str +=  '<font color="black">['+msg+']</font>';
	_root.log.htmlText = str;
}


Sollte doch alles richtig sein oder nicht ?


Wenn ihr die fla braucht no prob.
 
Hi,

damit führst Du nach wie vor eine "ungebremste" Endlosschleife durch:

onLoad ruft init auf - init ruft sofort wieder load auf, was zu onLoad führt ... :rolleyes:

Poste bitte mal die Datei.

Gruß
.
 
Zurück