Hi all
I have a dilemma with a small site I am building.
I have a navigation panel inside a DIV and whenI click a link, a page is called inside of an IFRAME on my page. Once this page is displayed in the iframe I update my database to enable the next link in my navigation tree however I need to be able to refresh my navigation panel in order for the navigation function to execute again and update the tree elements (without refreshing the parent window – hence the use of my iframe earlier).
Anyway I think that the layer.load() method sounds like it will do what I need – i.e. reload my PHP script inside my navigation DIV however I have tried the following 2 options and keep getting syntax errors – can someone help me out with the code please?
functions attempts are:
[CODE]
function enableNavItem {
navlayer.load(‘/sections/nav.php’);
}
also
[CODE]
function enableNavItem {
window.parent.document.getElementById(‘navlayer’).load(‘/sections/nav.php’);
}
Im stuck and in need of some guru help!
Many Thanks for reading.