imperialized Posted February 20, 2009 Share Posted February 20, 2009 Ok, I've been trying to get this to work with no prevail. What I have is a page with an Iframe, and outside the Iframe I have my menu. Its located in <div id=\"menu\"> When I load my index2.php (the page that people go to after login) it calls: <body onload=\"updateMenu()\"> This script calls this: function menu_stateChanged() { if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { document.getElementById("menu").innerHTML=xmlHttp.responseText } } function updateMenu() { xmlHttp=GetXmlHttpObject() if (xmlHttp==null) { alert ("Browser does not support HTTP Request") return } url = "menu_check.php"; xmlHttp.onreadystatechange=menu_stateChanged xmlHttp.open("GET",url,true) xmlHttp.send(null) } I can't get it to work though, any suggestions? Quote Link to comment Share on other sites More sharing options...
imperialized Posted February 20, 2009 Author Share Posted February 20, 2009 Ok since it will not let me edit my former post, I switched and tried using the ajax model given here, MyAjaxRequest.. I know the problem must be locating the <DIV> that is outside the Iframe.. any help is greatly appreciated. Thanks Quote Link to comment Share on other sites More sharing options...
imperialized Posted February 20, 2009 Author Share Posted February 20, 2009 Got frustrated, got rid of frame. Problem solved. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.