Hello,
Ive got a knowledge base app with a frameset which consists of a table of contents and content frame. I run an action onload of the frame to keep track of the current frame location via reading the src attribute of the frame if i cant check it via javascript. For the most part i accomplish this by loading the external pages via a javascript function like so
now the problem im having is this.. if i load an external page for instance google in the content frame(mf) and the user then chooses to go to google images or a site via google search but then clicks the google button from my page(only an example) the page will not change because the attribute remains the same. im not trying to run code from there site or anything like that id just like to get the user back to where they need to go(an external company site). basically is there a way to refresh the site thats in a frameset via the frame page. The only thing i can think of is to create a local page that redirects based on querystring that way i dont have to deal with this broken model (in my case).
thaks for any thoughts or advice
DrewG
MCP, .Net Solutions Development <%_%>
Ive got a knowledge base app with a frameset which consists of a table of contents and content frame. I run an action onload of the frame to keep track of the current frame location via reading the src attribute of the frame if i cant check it via javascript. For the most part i accomplish this by loading the external pages via a javascript function like so
Code:
//function to open new pages either in a new window or in the content frame
function openpage(address, isclient, nuwindow) {
var mf;
if(address != '') {
mf = document.getElementById("mainFrame");
mf.setAttribute("src", address);
//mainFrame.location.reload(true);
}
}
now the problem im having is this.. if i load an external page for instance google in the content frame(mf) and the user then chooses to go to google images or a site via google search but then clicks the google button from my page(only an example) the page will not change because the attribute remains the same. im not trying to run code from there site or anything like that id just like to get the user back to where they need to go(an external company site). basically is there a way to refresh the site thats in a frameset via the frame page. The only thing i can think of is to create a local page that redirects based on querystring that way i dont have to deal with this broken model (in my case).
thaks for any thoughts or advice
DrewG
MCP, .Net Solutions Development <%_%>