PHP interesse |
|
De php file geeft &logged=1 weer de trace geeft ook weer. Maar de de if doet raar want de trace geeft weer "de tweede".
receive = new LoadVars();
receive.load("http://www.xaosro.com/flashlogin.php", receive);
receive.onLoad = function(success) {
if(success) {
trace(receive.logged);
if(receive.logged > 0) {
trace('de eerste');
input1._visible = false;
input2._visible = false;
register._visible = false;
lostpass._visible = false;
login._visible = false;
}
else {
trace('de tweede');
block._visible = false;
edit._visible = false;
online._visible = false;
logout._visible = false;
}
}
};
receive = new LoadVars(); receive.load("http://www.xaosro.com/flashlogin.php", receive); receive.onLoad = function(success) { if(success) { trace(receive.logged); if(receive.logged > 0) { trace('de eerste'); input1._visible = false; input2._visible = false; register._visible = false; lostpass._visible = false; login._visible = false; } else { trace('de tweede'); block._visible = false; edit._visible = false; online._visible = false; logout._visible = false; } } };
Thijs
|