File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes Frame refresh problems Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Frame refresh problems" Watch "Frame refresh problems" New topic
Author

Frame refresh problems

Kishan Patel
Greenhorn

Joined: Nov 19, 2009
Posts: 1
Hi All,

I've been working with constructing one website which used to run as an independent site in all aspects on a Jboss server (as a war file deployment).
Let's say the site is accessed as <http://www.myserver.com/mycontext/servletName>. This site keeps downloading the newer versions of cab files as and when they are changed. So far as it's an integrated environment we can do a full window refresh and nothing goes wrong.

Recently because of changes in some requirements, that site is being called in a frame from a different site. Now the parent site for my site is: <http://www.somesite.com/>

Now the frame that's getting called in the "BottomFrame" downloads some cab files. Because of security violation we cannnot reduce the security settings of the browser.

When the cab file download request comes and a yellow bar appears in the top we click on it and allow the download. During this time we want the page refresh to happen only for the site present in the "BottomFrame". Please suggest an approach where we have to make changes only in the pages in www.myserver.com.

If the entire window is refreshed then because of some internal mechanism the session data of my site is lost completely and I'm not able to go back to the current page.

This code modification should be done only in my code (the one deployed on the www.myserver.com).

Please check the html page for the view source that happens now. Suggest me a javascript approach to only refresh the frame in which my pages open up.

<html>

<head>
<title>My trials with Cab files </title>
<link href='http://www.somesite.com/css/main.css' rel='stylesheet' />
<link href='http://www.somesite.com/css/quotes.css' rel='stylesheet' />
</head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="-1">
<script src="/js/mycommon.js"></script>
</head>

<frameset rows="32,*" frameborder="NO" border="0" framespacing="0" onload="setHeaderFrame();">

<frame name="TopFrame" scrolling="NO" marginwidth="0"
noresize src="/Myexperiments/Sample_trial.jsp">

<frame name ="BottomFrame" scrolling="YES" noresize src='http://www.myserver.com/mycontext/servletName'>

</frameset>
<noframes>

<body bgcolor="#FFFFFF" text="#000000">

</body>

</noframes>

</html>

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Frame refresh problems