pavanpuligandla Posted November 1, 2008 Share Posted November 1, 2008 hii, i'm using a 3 html frames in my web page, top, left and rite content frames. i'm using draggable frames, every thing is fine, but i want to show my user session time out in that main page(containing 3 framesets), below is the code. i dun know waht had happened, the content is not getting displayed except the title. can anyone please help me.. below is my code <html dir='ltr'> <head> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; CHARSET=UTF-8"> <META HTTP-EQUIV="CONTENT-SCRIPT-TYPE" CONTENT="text/javascript"> <META HTTP-EQUIV="CONTENT-STYLE-TYPE" CONTENT="text/css"> <META HTTP-EQUIV="EXPIRES" CONTENT="-1"> <META HTTP-EQUIV="Refresh" CONTENT="1800; URL=http://localhost/Project/sessiontimeout.php"> <link rel="shortcut icon" href="http://localhost/Project/images/trrlogo1.ico"/> <meta name="generator" content="HTML Tidy, see www.w3.org"> <title>Page</title> <link rel="stylesheet" type="text/css" href="http://localhost/Project/css/timer.css"> <script type="text/javascript" src="http://localhost/Project/scripts/timer-src.js" /></script> <script type="text/javascript" src="http://localhost/Project/scripts/zdragdroplib.js"></script> </head> <script type="text/javascript"> document.write(getWarning()); </script> <div id="warningDiv"></div> <img src="http://localhost/Project/images/load.gif" onLoad="initTimer();"> <script language="JavaScript"> var frame = '<FRAMESET ROWS="117,*"><frame name="UniversalHeader" title="Portal Header" scrolling="no" frameborder="0" noresize src="http://localhost/Project/leftmenu.php"><FRAMESET COLS="238, *"><FRAME name="NAV" frameborder="0" framespacing ="0" scrolling="auto" marginheight="0" marginwidth="0" target="_blank" SRC="http://localhost/Project/leftnavigation.php"><FRAME name="TargetContent" scrolling="auto" frameborder="0" marginheight="0" target="_blank" SRC="http://localhost/Project/MainMenuframe.php"' ; var pos = document.location.href.indexOf("?http://"); if (pos>0) { frame += document.location.href.substr(pos+1); } else { frame += 'dc_toc.html'; } frame += '"></FRAMESET></FRAMESET>'; document.write(frame); </script> </html> i cannot see any content except the title.. please suggest me how to proceed.. Many Thanks. Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 1, 2008 Share Posted November 1, 2008 Its because you never enter the <body> tag <html dir='ltr'> <head> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <META HTTP-EQUIV="CONTENT-TYPE" CONTENT="text/html; CHARSET=UTF-8"> <META HTTP-EQUIV="CONTENT-SCRIPT-TYPE" CONTENT="text/javascript"> <META HTTP-EQUIV="CONTENT-STYLE-TYPE" CONTENT="text/css"> <META HTTP-EQUIV="EXPIRES" CONTENT="-1"> <META HTTP-EQUIV="Refresh" CONTENT="1800; URL=http://localhost/Project/sessiontimeout.php"> <link rel="shortcut icon" href="http://localhost/Project/images/trrlogo1.ico"/> <meta name="generator" content="HTML Tidy, see www.w3.org"> <title>Page</title> <link rel="stylesheet" type="text/css" href="http://localhost/Project/css/timer.css"> <script type="text/javascript" src="http://localhost/Project/scripts/timer-src.js" /></script> <script type="text/javascript" src="http://localhost/Project/scripts/zdragdroplib.js"></script> </head><body> <script type="text/javascript"> document.write(getWarning()); </script> <div id="warningDiv"></div> <img src="http://localhost/Project/images/load.gif" onLoad="initTimer();"> <script language="JavaScript"> var frame = '<FRAMESET ROWS="117,*"><frame name="UniversalHeader" title="Portal Header" scrolling="no" frameborder="0" noresize src="http://localhost/Project/leftmenu.php"><FRAMESET COLS="238, *"><FRAME name="NAV" frameborder="0" framespacing ="0" scrolling="auto" marginheight="0" marginwidth="0" target="_blank" SRC="http://localhost/Project/leftnavigation.php"><FRAME name="TargetContent" scrolling="auto" frameborder="0" marginheight="0" target="_blank" SRC="http://localhost/Project/MainMenuframe.php"' ; var pos = document.location.href.indexOf("?http://"); if (pos>0) { frame += document.location.href.substr(pos+1); } else { frame += 'dc_toc.html'; } frame += '"></FRAMESET></FRAMESET>'; document.write(frame); </script> </body> </html> Quote Link to comment Share on other sites More sharing options...
pavanpuligandla Posted November 2, 2008 Author Share Posted November 2, 2008 hii.. @ above,. yes i copied the code u posted with <body>, but stil i cant see the frames content.the page title is only displayed.. this is ridiculous, i wasted 3 days working on these frames but no result.. ??? can u help me out please... Many Thanks, Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 2, 2008 Share Posted November 2, 2008 To be honest i have never worked with frames. i consider them depreciated. If someone who knows what they are talking about here hasn't stepped in yet because they think Ive got this problem then go ahead and jump in the thread man cuz I don't pretend to be an expert at frames and stuff I have no clue about. Quote Link to comment Share on other sites More sharing options...
pavanpuligandla Posted November 2, 2008 Author Share Posted November 2, 2008 If someone who knows what they are talking about here hasn't stepped in yet they will not answer here, bcoz i;ve been trying for days but failed in getting the solution.i've posted my problem, so those people shld help me. hey you have any tutorials of frames mate? yes i too dun prefer frames, they have many disadvantages over div, but my coding is atmost done, so i cannot change now.. thnx mate for d come back... Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 2, 2008 Share Posted November 2, 2008 Worst english ever but I guess w3schools.com would be a good tutorial. http://w3schools.com/html/html_frames.asp Quote Link to comment Share on other sites More sharing options...
pavanpuligandla Posted November 2, 2008 Author Share Posted November 2, 2008 Worst english ever whose english is worst?? mine?? Quote Link to comment Share on other sites More sharing options...
pavanpuligandla Posted November 2, 2008 Author Share Posted November 2, 2008 hurray.. my issue was solved... as i'm showing warning in one of my frames, if session ends then page expired message was shown on that frame only and rest of the frames remain constant. so i just added this line parent.document.location='sessionexpire.php'; previously it was document.location='sessionexpire.php'; parent is the page containin 3 frames.. regards, Quote Link to comment Share on other sites More sharing options...
likethegoddess Posted November 3, 2008 Share Posted November 3, 2008 Don't use frames. Seriously. Even if you get it to work, sites with frames cannot be accessed by most web crawlers. Use divs instead. There are lots of tutorials out there to get you on your way. Hope this helps. Diana Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 3, 2008 Share Posted November 3, 2008 While it is true most people don't like frames there is still the debate whether or not to use them if needed. Just because you don't like them doesn't mean people should stop using them Quote Link to comment Share on other sites More sharing options...
likethegoddess Posted November 3, 2008 Share Posted November 3, 2008 It would be easy if this were simply my personal preference. With all due respect, Boltz, I can safely say that the vast majority of professional web designers no longer use frames and haven't used frames for many years. I suppose then the question is whether frames are truly needed. Can what the coder is attempting be accomplished with divs instead? Diana Quote Link to comment Share on other sites More sharing options...
BoltZ Posted November 3, 2008 Share Posted November 3, 2008 No. JavaScript may be able, but I wouldn't know. And I am sure most people DON'T use frames but thats not the point. People still use them. Hell even Google uses frames Quote Link to comment Share on other sites More sharing options...
likethegoddess Posted November 3, 2008 Share Posted November 3, 2008 Hmm. Google uses iframes. Slightly different. Unless you're talking about the frames applied to third-party sites in image search. That's frames and that's a very special circumstance. 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.