Left.php contains the list of menu items. frameMiddle varies. Initially its Middle.php but when clicking a link on left it changes. For Ex. Banners.php. But I dont want anybody to enter Banner.php in the url. If he does so it'll automatically load index with Banner.php as Middle.
I tried client side checking but document.write(window.parent.frameName); is giving undefined. FRAMESET doesn't seem to support NAME property but then how else to overcome this ?
Last edited by anjanesh on Tue Dec 27, 2005 4:38 am, edited 1 time in total.
Well. What I dont want is user to enter Banner.php in the address bar of their browser and have that page loaded separately. If at all someone does enter Banners.php in the address bar then it should automatically load the frame page with Banner.php as Middle. If you look at MSDN and save a particular topic from the library to your hdd and then try opening the content page (which is in subfolder : right->content) it'll load the frame page automatically.
if (typeof window.name == undefined) {
//reload main frame
}
No matter what there are easy ways around it. (Switching off javascript for one).
Another alternative is to not use frames and use a CSS layout instead. Unfortunately if you are in development rather than design this would mean a substantial rework.