location replace in safari

M

mark.middlemist

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&formSplit=&ref=';
</script>
</body>
 
M

mark.middlemist

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
 
V

VK

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 (?)
 
M

mark.middlemist

Sorry I wasn't more explicit. I was just not redirecting, but that has
fixed it

Eternal Gratitude

Mark
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top