HTML Tutorial


 /help/HTML Help Forum   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Using a JSP page as the source in a frame
Post new topic   Reply to topic    HTML Help Forum -> HTML Frame
View previous topic :: View next topic  
Author Message
KDenham



Joined: 20 Nov 2009
Posts: 4

PostPosted: Fri Nov 20, 2009 8:34 am     Using a JSP page as the source in a frame Reply with quote

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

PostPosted: Fri Nov 20, 2009 3:22 pm     Reply with quote

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

PostPosted: Mon Nov 23, 2009 4:44 am     Using JSP pages as SRC inside an HTML FRAME Reply with quote

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

PostPosted: Mon Nov 23, 2009 5:59 am     Reply with quote

iFrames
HTML &lt;iframe> Tag


Frames
HTML &lt;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. Razz 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

PostPosted: Mon Nov 23, 2009 6:28 am     Referencing JSP pages in FRAMES Reply with quote

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

PostPosted: Mon Nov 23, 2009 6:35 pm     Reply with quote

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

PostPosted: Tue Nov 24, 2009 5:42 am     Using FRAMES with JSP pages Reply with quote

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

PostPosted: Tue Nov 24, 2009 6:22 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum -> HTML Frame All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial