Heres a fix all I am giving two options for reframing it or breaking the
frame entirely:
in the "up" frame page write a call to the javascript :
onclick="parent.frameNavig();"
in the framset page itself write the javascript :
function frameNavig() {
//changes the frame to the page you want.
// frames['mainFrame'].window.location="www.google.com";
//breaks the frame entirely
window.location="www.google.com";
}
-----Original Message-----
From: Steve Oliver [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 9:38 AM
To: CF-Talk
Subject: RE: Javascript does not want to change the current location
I may of misunderstood the question, but if you want it to go there in
the current frame, why don't you just use a regular link with the target
set to _self?
_____________________________
steve oliver
senior internet developer
atnet solutions, inc.
http://www.atnetsolutions.com
-----Original Message-----
From: Macarie Neculai [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 10:25 PM
To: CF-Talk
Subject: Javascript does not want to change the current location
Hi!
I have the following problem:
have a page that uses frames, and the frame structure is something like
this:
--------------------------
| topbar |
|-------------------------
| menu | up |
| | --------- |
| | down |
-------------------------
in the up frame a have something like like this:
<script>
function goURL()
{
location.href='www.google.com';
}
</script>
<A href="#" onClick="goURL();">some link</A>
My problem is that the assignment from the goURL is not executed (the
browser does not go to www.google.com).
It works if I load www.google.com in all other frames, but it does not
work
to load it in the same frame as the link (up frame).
I've tried
top.main.up.location.href
self.location.href
.
it just does not work with the current frame.
Any help appreciated.
Mack
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
Instant Activation � $99/Month � Free Setup
http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists