JS/Ajax - Change page with PHP in ajax

Udzfpwukoyrso

New Member
Ive got an ajax type script changing div content with data from a PHP file using xmlhttp:\[code\]function updatelog() {request = 'messages.php?new='+first+'&time='+lastupdate+'&user='+user;xmlhttp.open("GET", request ,false);xmlhttp.send();document.getElementById("messages").innerHTML=document.getElementById("messages").innerHTML+xmlhttp.responseText;lastupdate = time();first = 0;document.getElementById("messages-window").scrollTop = document.getElementById("messages-window").scrollHeight;}\[/code\]I want to redirect the user using \[code\]header( 'Location: kick.php' );\[/code\] but it only redirects the XML request, not the whole page.how can i redirect the whole page and not just the request?
 
Back
Top