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

location replace in safari

P: n/a
Hi All

I've got a wierd and urgent problem I could do with some help for.

In our forms system in several places we need to use javascript to
redirect to the next frame up (parent), which works fine with every
browser on the planet, except safari (1 definately, don't know about
2). I've incuded an example that doesn't work below. Any suggestions
would be VERY greatly appreciated.

Thanks in advance

Mark

---

<html>
<body bgcolor="#000000">
<script language="javascript">
parent.location.href =
'proposal_frameset.asp?id=86&page=2&total=7&formSp lit=&ref=';
</script>
</body>

Nov 22 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Just realised one thing, I pasted in a version I was testing (which of
course didn't work). Here's the version from live:

window.parent.document.location.href

Thanks again

Mark

On Nov 22, 1:04 pm, mark.middlem...@gmail.com wrote:
Hi All

I've got a wierd and urgent problem I could do with some help for.

In our forms system in several places we need to use javascript to
redirect to the next frame up (parent), which works fine with every
browser on the planet, except safari (1 definately, don't know about
2). I've incuded an example that doesn't work below. Any suggestions
would be VERY greatly appreciated.

Thanks in advance

Mark

---

<html>
<body bgcolor="#000000">
<script language="javascript">
parent.location.href =
'proposal_frameset.asp?id=86&page=2&total=7&formSp lit=&ref=';
</script>
</body>
Nov 22 '06 #2

P: n/a
VK
ma*************@gmail.com wrote:
Just realised one thing, I pasted in a version I was testing (which of
course didn't work). Here's the version from live:

window.parent.document.location.href
You still did not explain what doesn't work on Safari: it navigates
nowhere, it navigates to a wrong place?

Overall Safari is the worst piece of junk I've ever seen in my life on
the browser market (and I have seen really scary sh** like Netscape 6
alpha :-)

Once upon a time (Netscape 2) window.location was read/write and
document.location read only. This difference seems being abandonned
long ago. From the other side if there is any opportinity to be bizzare
Safari uses it. So first try
window.parent.location.href = something // w/o document
Overall it is more common practice (though the original reason behind
it is already gone (?)

Nov 22 '06 #3

P: n/a
Sorry I wasn't more explicit. I was just not redirecting, but that has
fixed it

Eternal Gratitude

Mark
On Nov 22, 2:08 pm, "VK" <schools_r...@yahoo.comwrote:
mark.middlem...@gmail.com wrote:
Just realised one thing, I pasted in a version I was testing (which of
course didn't work). Here's the version from live:
window.parent.document.location.hrefYou still did not explain what doesn't work on Safari: it navigates
nowhere, it navigates to a wrong place?

Overall Safari is the worst piece of junk I've ever seen in my life on
the browser market (and I have seen really scary sh** like Netscape 6
alpha :-)

Once upon a time (Netscape 2) window.location was read/write and
document.location read only. This difference seems being abandonned
long ago. From the other side if there is any opportinity to be bizzare
Safari uses it. So first try
window.parent.location.href = something // w/o document
Overall it is more common practice (though the original reason behind
it is already gone (?)
Nov 22 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.