| View previous topic :: View next topic |
| Author |
Message |
KDenham
Joined: 20 Nov 2009 Posts: 4
|
Posted: Fri Nov 20, 2009 8:34 am Using a JSP page as the source in a frame |
|
|
|
I am trying to use FRAME to pull in data stored across a set of JSP wiki pages into a tabbed display structure. Without clogging up this post with the code for creating the four tab areas, here is what I'm using:
<!-- BEGIN TAB 1 -->
<div id="tab_1_data" class="tab_content" style="display: none;">
<FRAMESET COLS="100%">
<FRAME SRC="https://us.jfcom.mil/sites/site1.aspx">
</div>
In each case, no information from the referenced source page is displayed under the tab.
</div> |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4883 Location: MS
|
Posted: Fri Nov 20, 2009 3:22 pm |
|
|
|
That's a secure site/page and requires logging in. Have you registered your CAC? Not sure after that is done whether you can access the page or not.
You might want to take a look at using iFrame tags unless your page is using the frameset doctype. |
|
KDenham
Joined: 20 Nov 2009 Posts: 4
|
Posted: Mon Nov 23, 2009 4:44 am Using JSP pages as SRC inside an HTML FRAME |
|
|
|
| I'm working within the secure Sharepoint site domain and trying to build a page to pull together content from other pages within that domain. I'll look at IFRAME, but since I'm not a web page programmer, I don't know the difference between IFRANE and FRAME. |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4883 Location: MS
|
Posted: Mon Nov 23, 2009 5:59 am |
|
|
|
iFrames
HTML <iframe> Tag
Frames
HTML <frame> Tag
Hopefully, those will explain in better detail the difference. I can't even begin to try coding since the page being pulled is "off-limits" to me. You might want to use PHP to set it up in order to keep all link info off the web page. Will just have to helpt you along with whatever coding you come up with.
Last edited by PayneLess Designs on Mon Nov 23, 2009 6:34 pm; edited 1 time in total |
|
KDenham
Joined: 20 Nov 2009 Posts: 4
|
Posted: Mon Nov 23, 2009 6:28 am Referencing JSP pages in FRAMES |
|
|
|
| Thanks for the help! It looks like it works using IFRAME. My new problem is how to target a part of the JSP page instead of the whole page to clear out the clutter, but that's a whole different problem! Thanks, again! |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4883 Location: MS
|
Posted: Mon Nov 23, 2009 6:35 pm |
|
|
|
| When you say target, is it that you want only a certain part of the page to show when loaded? If so, that can be adjusted with CSS. |
|
KDenham
Joined: 20 Nov 2009 Posts: 4
|
Posted: Tue Nov 24, 2009 5:42 am Using FRAMES with JSP pages |
|
|
|
| I'm working within a Sharepoint 2007 environment, and the page I'm trying to develop pulls together data recorded on various Wiki pages within that environment. The problem I have is trying to target only the Wiki content and not have to view with the "noise" of the rest of the Sharepoint template (banner, sidebar menu, etc.) |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4883 Location: MS
|
Posted: Tue Nov 24, 2009 6:22 pm |
|
|
|
Would this help?
How to position a page within an iframe using CSS:
| Code: |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html><head>
<title>How to position a page within an iframe using CSS</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<style type="text/css">
#outerdiv
{
width:446px;
height:246px;
overflow:hidden;
position:relative;
}
#inneriframe
{
position:absolute;
top:-412px;
left:-318px;
width:1280px;
height:1200px;
}
</style>
</head>
<body>
<div id='outerdiv'>
<iframe src="http://www.yahoo.com/" id='inneriframe' scrolling=no></iframe>
</div>
</body></html> |
That's an example for pulling a sectional view of a Yahoo page. |
|
|