When i load this script from url work fine. Only after include get error.
It`s from code (js) but i don`t know what it means:
PHP Code:
function dead(wat)
{
alert("Server side error. Dying:" + wat);
}
function cback(data, textStatus)
{
if (textStatus == "success")
{
var lines = data.split("\n");
mark = lines[0];
if (mark + 0 == 0) die(3);
var line;
var scrollme = new Array();
for(var i = 1; i < lines.length; i++)
{
line = lines[i].split("\x01");
// 0 srvid
// 1 string
// Formatted serverside
if ($("#dscrollto_" + line[0]).offset().top <= $("#dbody_" + line[0]).height() + $("#dbody_" + line[0]).offset().top)
if (!scrollme[line[0]]) scrollme[line[0]] = true;
if (line.length != 2) return dead("1");
var box = $("#dat_" + line[0]);
if (!box) return dead("2");
if (loading)
{
box.html(line[1]);
loading = 0;
}
else
{
box.append(line[1]);
}
box.children(".line:last").fadeIn(500);
}