Hi all,
I’m new, so a big hello first.
I’m writing a game in JS, see it here first:
[URL=http://www.ralpharama.co.uk/java/Dig%20Jig/]http://www.ralpharama.co.uk/java/Dig%20Jig/
After the end if the game, you type in your name, then you should be redirected to the highscores page. This works fine in Mozilla, Firefox, but not in IE. I’ve done redirects in IE before, but can’t seem to get this to work. I’ve tried every combination of redirect that I could find, e.g.:
location.replace(locn);
location.href=locn;
Etc… None seem to redirect.. It just sits there….
If you want to view the code, just view the source of the page:
[URL=http://www.ralpharama.co.uk/java/Dig%20Jig/digjig.php]http://www.ralpharama.co.uk/java/Dig%20Jig/digjig.php
The redirect is near the bottom:
[CODE] function gameOver()
{
var name = prompt(‘Game Over!nnBut, you may have a high score!nnSo, Enter your name:’,”);
if (name==”) name=”Anon”;
var locn = “highscore.php?d=”+diamonds+”&t=”+seconds+”&n=”+name+”&l=”;
location.replace(locn);
location.href=locn;
}
(PHP inserts some dynamic values into the code in case you were wondering)
Any suggestions / help, much appreciated.
I’ll check this post daily, and let you know if I resolve it.
Cheers,
R.