R
Rob Gordon
Hat's off to Kaeli!
I've been trying for months to get some code that would allow me to
break the contents out of the main frame in my frame based navigation
system- and he has almost solved this problem with just a few lines of
code:
<a href="#" onClick="window.open(top.frames
['mainFrameName'].document.location,'','');return false;">click here
to open the document in a new window</a>
The only thing wrong with this is it only works for web pages already
on my server. If an external link is displayed in the main frame
window then this doesn't work- and clicking the "new window" button
will cause the footer frame to be displayed in the main frame instead.
I'm not a programmer and this may just be a small fix- if anyone else
could give me a small hand I would really appreciate it. The function
is currently in the portal below if you want to see what it is doing.
Cheers
Rob
http://www.caltrade.com
Hi all,
I have a web portal I have been developing where I have put together a
fairly nice navigation system using frames. There is a left hand
menu, a "main" frame and a header and footer frame. Everything url
that a user clicks is displayed in the "main frame". I want to give
my users a function called "New Window" in the footer frame that will
"break" the main frame and open whatever is there in a separate
window. This will allow me to add more interesting contents since I
will no longer be "trapping" people in my frame system.
The problem is I don't know Javascript and my venture is not funded so
I can't pay anything right now but I would be very grateful is someone
knows if there is an easy way to do this. I tried to explain this to
some programmer friends of mine but I'm not sure we communicated
because they recommended what seemed like a complimented and involved
approach.
At first I was trying to find a function that would "look at" whatever
iis in the main frame and open it in a new window. I've looked at
this issue again, and I think it can be solved a different way without
referirng to "frames" at all. Would it be possible to write a
function in Javascript that would "remember" whatever the last url
clicked, and then open this in a new window? I think this would do
the exact same thing. My portal is at the link below if you want to
see why I need this.
Thank you
Rob
http://www.caltrade.com
I've been trying for months to get some code that would allow me to
break the contents out of the main frame in my frame based navigation
system- and he has almost solved this problem with just a few lines of
code:
<a href="#" onClick="window.open(top.frames
['mainFrameName'].document.location,'','');return false;">click here
to open the document in a new window</a>
The only thing wrong with this is it only works for web pages already
on my server. If an external link is displayed in the main frame
window then this doesn't work- and clicking the "new window" button
will cause the footer frame to be displayed in the main frame instead.
I'm not a programmer and this may just be a small fix- if anyone else
could give me a small hand I would really appreciate it. The function
is currently in the portal below if you want to see what it is doing.
Cheers
Rob
http://www.caltrade.com
Hi all,
I have a web portal I have been developing where I have put together a
fairly nice navigation system using frames. There is a left hand
menu, a "main" frame and a header and footer frame. Everything url
that a user clicks is displayed in the "main frame". I want to give
my users a function called "New Window" in the footer frame that will
"break" the main frame and open whatever is there in a separate
window. This will allow me to add more interesting contents since I
will no longer be "trapping" people in my frame system.
The problem is I don't know Javascript and my venture is not funded so
I can't pay anything right now but I would be very grateful is someone
knows if there is an easy way to do this. I tried to explain this to
some programmer friends of mine but I'm not sure we communicated
because they recommended what seemed like a complimented and involved
approach.
At first I was trying to find a function that would "look at" whatever
iis in the main frame and open it in a new window. I've looked at
this issue again, and I think it can be solved a different way without
referirng to "frames" at all. Would it be possible to write a
function in Javascript that would "remember" whatever the last url
clicked, and then open this in a new window? I think this would do
the exact same thing. My portal is at the link below if you want to
see why I need this.
Thank you
Rob
http://www.caltrade.com