Hi,
I have a page, which consists of a top frame, and two side-by-side frames at the bottom:
<HTML>
<HEAD>
</HEAD>
<FRAMESET ROWS="30%,70%" BORDER=0>
<FRAME SRC="/BusinessReview/html/br_top.html" NAME="DisplaySite_frm" noresize scrolling="no">
<FRAMESET COLS="20%,80%" BORDER=0>
<FRAME SRC="/BusinessReview/servlet/MultiSelect" NAME="MultiSelect_frm" noresize scrolling="no">
<FRAME SRC="/BusinessReview/html/blank.htm" NAME="MainFrame_frm" noresize scrolling="auto">
</FRAMESET>
</FRAMESET>
</HTML>
Now, in my top frame (DisplaySite_frm), I have a form (frm_Getsite), where I enter a Code(called Sac_code), and when i submit the form, i want the output to be displayed in the frame MainFrame_frm.
The code for br_top.html is as below:
<html>
<head>
script language = javascript>
function submitpage()
{
var vsac=document.frm_GetSite.sac_code.value;
var servletpath="/BusinessReview/servlet/br_srv_DisplaySite?sac_code="+vsac;
parent.frames[1].location.href="/BusinessReview/html/crisp.html";
parent.frames[2].location.href=servletpath;
document.frm_GetSite.submit();
}
</script>
</head>
<FORM ACTION="" TARGET="MainFrame_frm" name="frm_GetSite">
<input type=text NAME="sac_code" size=10>
<input type=button value="Get Sites" onclick="javascript:submitpage()">
</form>
</html>
In the bottom left frame, the html page gets displayed fine, when I submit the form, but the servlet(br_srv_DisplaySite) does not execute.
Why does the servlet not get executed?
-Anukta![[sadeyes] [sadeyes] [sadeyes]](/data/assets/smilies/sadeyes.gif)
I have a page, which consists of a top frame, and two side-by-side frames at the bottom:
<HTML>
<HEAD>
</HEAD>
<FRAMESET ROWS="30%,70%" BORDER=0>
<FRAME SRC="/BusinessReview/html/br_top.html" NAME="DisplaySite_frm" noresize scrolling="no">
<FRAMESET COLS="20%,80%" BORDER=0>
<FRAME SRC="/BusinessReview/servlet/MultiSelect" NAME="MultiSelect_frm" noresize scrolling="no">
<FRAME SRC="/BusinessReview/html/blank.htm" NAME="MainFrame_frm" noresize scrolling="auto">
</FRAMESET>
</FRAMESET>
</HTML>
Now, in my top frame (DisplaySite_frm), I have a form (frm_Getsite), where I enter a Code(called Sac_code), and when i submit the form, i want the output to be displayed in the frame MainFrame_frm.
The code for br_top.html is as below:
<html>
<head>
script language = javascript>
function submitpage()
{
var vsac=document.frm_GetSite.sac_code.value;
var servletpath="/BusinessReview/servlet/br_srv_DisplaySite?sac_code="+vsac;
parent.frames[1].location.href="/BusinessReview/html/crisp.html";
parent.frames[2].location.href=servletpath;
document.frm_GetSite.submit();
}
</script>
</head>
<FORM ACTION="" TARGET="MainFrame_frm" name="frm_GetSite">
<input type=text NAME="sac_code" size=10>
<input type=button value="Get Sites" onclick="javascript:submitpage()">
</form>
</html>
In the bottom left frame, the html page gets displayed fine, when I submit the form, but the servlet(br_srv_DisplaySite) does not execute.
Why does the servlet not get executed?
-Anukta
![[sadeyes] [sadeyes] [sadeyes]](/data/assets/smilies/sadeyes.gif)