netmercury
01-08-2007, 07:27 AM
1) Script Title: iframe
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/dowiframe.htm
3) Describe problem:
hi, gurus,
i have a page which has two frames, left.jsp and right.jsp.
in the left.jsp, i have 4 links.
<a href="right.jsp?id=1 target=right">first</a><br>
<a href="right.jsp?id=2 target=right">second</a><br>
<a href="right.jsp?id=3 target=right">third</a><br>
<a href="right.jsp?id=4 target=right">fourth</a><br>
and in the right.jsp, i have iframes,
<iframe id="testiframe1" src = right1.jsp name="first" style="display:<%=(request.getParameter("id").equals("1"))?"":"none"%>" height="100%" width="100%" frameborder="0" scrolling="auto"></iframe>
<iframe id="testiframe2" src = right2.jsp name="second" style="display:<%=(request.getParameter("id").equals("2"))?"":"none"%>" height="100%" width="100%" frameborder="0" scrolling="auto"></iframe>
<iframe id="testiframe3" src = right3.jsp name="third" style="display:<%=(request.getParameter("id").equals("3"))?"":"none"%>" height="100%" width="100%" frameborder="0" scrolling="auto"></iframe>
<iframe id="testiframe4" src = right4.jsp name="fourth" style="display:<%=(request.getParameter("id").equals("4"))?"":"none"%>" height="100%" width="100%" frameborder="0" scrolling="auto"></iframe>
alright,
so when i open right1.jsp, there is a textarea which i can type something into it.
what i want is, if i typed something in the right1.jsp, then i open right2.jsp. and when i open back right1.jsp, the text are still there.
i heard that it can be done in iframe, but it refresh everytime i open back the right1.jsp.
is it possible to make right1.jsp to not refreshing?
thank you.
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/dowiframe.htm
3) Describe problem:
hi, gurus,
i have a page which has two frames, left.jsp and right.jsp.
in the left.jsp, i have 4 links.
<a href="right.jsp?id=1 target=right">first</a><br>
<a href="right.jsp?id=2 target=right">second</a><br>
<a href="right.jsp?id=3 target=right">third</a><br>
<a href="right.jsp?id=4 target=right">fourth</a><br>
and in the right.jsp, i have iframes,
<iframe id="testiframe1" src = right1.jsp name="first" style="display:<%=(request.getParameter("id").equals("1"))?"":"none"%>" height="100%" width="100%" frameborder="0" scrolling="auto"></iframe>
<iframe id="testiframe2" src = right2.jsp name="second" style="display:<%=(request.getParameter("id").equals("2"))?"":"none"%>" height="100%" width="100%" frameborder="0" scrolling="auto"></iframe>
<iframe id="testiframe3" src = right3.jsp name="third" style="display:<%=(request.getParameter("id").equals("3"))?"":"none"%>" height="100%" width="100%" frameborder="0" scrolling="auto"></iframe>
<iframe id="testiframe4" src = right4.jsp name="fourth" style="display:<%=(request.getParameter("id").equals("4"))?"":"none"%>" height="100%" width="100%" frameborder="0" scrolling="auto"></iframe>
alright,
so when i open right1.jsp, there is a textarea which i can type something into it.
what i want is, if i typed something in the right1.jsp, then i open right2.jsp. and when i open back right1.jsp, the text are still there.
i heard that it can be done in iframe, but it refresh everytime i open back the right1.jsp.
is it possible to make right1.jsp to not refreshing?
thank you.