?
Solved

hOW TO Refresh Other Frame

Posted on 2004-10-22
5
Medium Priority
?
173 Views
Last Modified: 2010-04-01
hi

I have Frames (left & right pages). When xyz.jsp loads on right frame, I want to refresh left page.
I want to know the syntax, upon checking the request.parameter depending on the values I want to refresh left frame.

Regards,
Hyd
0
Comment
Question by:princehyderabad
  • 3
  • 2
5 Comments
 
LVL 35

Accepted Solution

by:
TimYates earned 200 total points
ID: 12388743
<%
    String param = request.getParameter( "whatever" ) ;
    if( param != null && param.equals( "value" ) )
    {
%>
<script language="JavaScript">
<!--
    parent.leftframename.location.reload() ;
-->
</script>
<%
    }
%>

Should do it...
0
 

Author Comment

by:princehyderabad
ID: 12402286
hi Tim,

I got small logical problem.
After performing certain action, the servlet redirect to JSP page. This is the redirect code.

response.sendRedirect("right.jsp");

How should I know in the right.jsp page that it is been redirect from xyz servlet and I need to perform leftframe refresh. Only if redirect is done from xyz serlvet it has to perform refresh on leftframe.

I tried this with yout above code, but didnt worked.
response.sendRedirect("../resource/overview.jsp?rwhatever=value");

Regards,
H
0
 
LVL 35

Expert Comment

by:TimYates
ID: 12403827
Did you mean:

response.sendRedirect("../resource/overview.jsp?whatever=value");

?

"whatever", not "rwhatever"?

can you post the html for your root frame?  Is your left frame called "leftframename"?  In my example code...
0
 

Author Comment

by:princehyderabad
ID: 12404029
Nevermind, I got it. Thanks
0
 
LVL 35

Expert Comment

by:TimYates
ID: 12408414
:-)

Glad I could help :-)

Good luck!!

Tim
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes MS breaks things just for fun... In Access 2003, only the maximum allowable SQL string length could cause problems as you built a recordset. Now, when using string data in a WHERE clause, the 'identifier' maximum is 128 characters. So, …
Tech giants such as Amazon and Google have sold Alexa and Echo to such an extent that they have become household names. And soon they are expected to be used by commoners in their homes, ordering takeout, picking out a song, answering trivia questio…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Loops Section Overview
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question