but_load.onRelease = function() {
loadVariables("load.php",mother,"POST");
mother.onData = function(){ // wait untill anythings loaded
var aktPos = 0;
var arrayCounter = 0;
for(var i=0; eingang.length-1; i++) { //eingang is the variable used to transfer data with help of php wich consists the content of the read text file
if(charAt(i)=='|') { // the data is devided with a pipe, e.g text1|text2|text3 ...
newscontent[arrayCounter] = eingang.substring(aktPos,i); // find the substrings and write them into my array
aktPos = i;
arrayCounter++; // jump to nex index
}
}
textbox = newscontent[recentNews];
}
}