By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,712 Members | 2,174 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,712 IT Pros & Developers. It's quick & easy.

problem with window.navigate on aple

P: n/a
hello

i have this small code:
<?
if ($errorsTable == 0) {
?>
<script type="text/javascript">
window.navigate("main.php");
</script>
<?
exit;
}
?>

it works ok on Ie, FF, Opera, but not on Safari on apple.
it seems safari doesn't see javaScript , and the page doesn't change
anyone help?
Sep 19 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
lorents wrote:
hello

i have this small code:
<?
if ($errorsTable == 0) {
?>
<script type="text/javascript">
window.navigate("main.php");
</script>
<?
exit;
}
?>

it works ok on Ie, FF, Opera, but not on Safari on apple.
it seems safari doesn't see javaScript , and the page doesn't change
anyone help?
You are assuming that Safari implements the - navigate - method. Last
time I looked it did not. The normal way of navigating a browser to a
URL is to assign the URL to the window's - location property. I.E.:-

location = 'main.php';

- and that works cross-browser.

Richard.

Sep 19 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.