Jump to content

Frames not displaying the content..


pavanpuligandla

Recommended Posts

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.

Link to comment
Share on other sites

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>

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

If someone who knows what they are talking about here hasn't stepped in yet

;D

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...

 

 

Link to comment
Share on other sites

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,  8)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.