maybe redirect with http statuscode and location header?
header("Location: /newurl.php");
-------------------------------------
visit my webpage
http://www.howhot.de
christian schrieb:
> Hello
> I use a AJAX refresh on a page to test a $var state
>
> <div>
> <?
> include ("include/refr.inc.php");
> //ajax script for reload
> require ("bd_inc.php");
> //test the line state buzy or free
> $st = mysql_query("SELECT linestate FROM broad WHERE num='40'");
> $linest = mysql_fetch_array($st);
> $linestate= $linest["linestate"];
> if ($linestate=='0')
> {
> echo "<script language=\"JavaScript\">";
> echo "window.location.replace(\"update.php\")";
> echo "</script>";
> }
> else .........
>
> unfortunely it work with all instructions I have tested but redirection
> instructions are not working
> If I just use a simple meta refresh without ajax it work
> Any idea ?
> >> Stay informed about: Ajax refresh