Java Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingJava Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old November 23rd, 2004, 05:54 AM
virgil virgil is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 3 virgil User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Question Jsp

I have a JSP in which I have an iframe tag.
Can I give <jsp:include page="xyz.jsp"> as the value of source for the
<Iframe> tag.
Means

<IFrame src="<jsp:include page='xyz.jsp'>" width="400" height="600" scrolling="no" frameborder="1">
</IFrame>

Can this be done??

Remember xyz.jsp must work like <jsp:include page/> in a file ABC.jsp.

Actually xyz.jsp contains an image on which I want to zoom but i dont want any other content in
my main ABC.jsp to be refreshed.

Reply With Quote
  #2  
Old February 23rd, 2005, 06:12 AM
gertcuppens's Avatar
gertcuppens gertcuppens is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 118 gertcuppens User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 17 h 28 m
Reputation Power: 5
It's a late answer, I know, but this subject is so interesting. Probably you have
found the solution by now, but others could be interested.

Thanks to google, I've found the blog of Sam Dalton. And this is what he writes
about iframes.

Quote:

This solution uses IFRAMES (a Microsoft only Floating Frame). Bassically, you create a container page with and IFRAME contained with in it. This IFRAME contains your constantly refreshing page. This page might look like the excerpt below:

<body bgcolor="#EEEEEE" style="margin:0em" > <iframe src="myRefreshingPage.jsp" FRAMEBORDER="0" scrolling="no" width="100%" height="100%"/> </body>
Now when we scroll, our only our IFRAME refreshes, and our main page stays where it is, which is where ever the user has scrolled to!

It must be noted that this solution only works in IE (3+), but I think there is a similar Netscape/Mozilla alternative - ILAYERS?)


More info can be found at http://www.samjdalton.com/pebble/2003/09.html.

Reply With Quote
  #3  
Old February 23rd, 2005, 07:51 AM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 14 m 9 sec
Reputation Power: 8
I think to answer the original question, no I don't think that would work.

Why not simply do: <IFrame src="xyz.jsp" width="400" height="600" scrolling="no" frameborder="1">

I guess it depends on what is within your xyz.jsp file.


gertcuppens:
I imagine the only reason that code is labelled as IE3+ is because of the height using percentage. If I remember correctly, Netscape and similar browsers don't render this properly.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingJava Development > Jsp


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT