Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to make the response appear in a different frame other than what is specified in the anchor tag

 
nagarjuna borra
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<a href=abc.jsp target=frame3>link</a>

abc.jsp
<%
if(condition)
{
--some html code--
}
else
{
--some htmll code BUT IN A DIFFERENT FRAME "frame5" or "_top" or "_blank"
}

so,how do i it???
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The serverside code can not do anything.

Eric
 
nagarjuna borra
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eric Pascarello wrote:The serverside code can not do anything.

Eric


okay,good to hear that.

have a lousy solution anyway-

if anyone like me faced the similar problem,do so as specified below-

abc.jsp
<%
if(condition)
{
--some html code--
}
else
{
%>
<form name="gg" action="dummy.html" target="FRAME5">
</form>
<script language="javascript">
document.gg.submit();
</script>
<%
}
%>

dummy.html
<html>
--some code as in the else block
</html>


this will produce the desired effect.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic