crystalb24
Programmer
I have a page set up to use a "return to top" link to return to an anchor point at the top of the page. This works great as a stand alone page, but when I load it into the frameset I have designed the link doesn't work.
Here is the code for the frameset -
and here is the code for the page, targeted to mainFrame -
Am I doing something wrong? Do links to anchor points even work in frames?
Here is the code for the frameset -
Code:
<frameset rows="110,*" frameborder="NO" border="0" framespacing="0">
<frame name="topFrame" scrolling="NO" noresize src="topmenu.html" >
<frameset cols="181,*" frameborder="NO" border="0" framespacing="0">
<frame name="leftFrame" scrolling="NO" noresize src="leftNav_1.html">
<frame name="mainFrame" src="homepage.asp">
</frameset>
</frameset>
and here is the code for the page, targeted to mainFrame -
Code:
<script language="JavaScript">
function showLink(name)
{
window[name+"Div"].style.visibility = "visible";
}
</script>
Code:
<form name="formName" method="post" action="file:///G|/[URL unfurl="true"]wwwroot/PDGApps/AppFiles/ASPFiles/OnlineTraining/PCG/Fa_Rookie/MainMenu/Thanks.asp"[/URL] onsubmit="this.mission.value=this.textareaName.value;alert(this.mission.value);">
<input type='hidden' name='mission'>
<a name="textarea1"><TEXTAREA ROWS="10" COLS="65" name="textareaName"></textarea></a>
<p class="style27"><font size="+1"><b>Create your <font color="#cc0000">Mission Statement</font></b></font></p>
<p class="style20"><i>(insert questions from pyramid materials here)</i></p>
<p class="style27"><font size="+1"><b>Best Practice Examples from FAs</b></font></p>
<table class="style20" width="100%">
<tr>
<td width="3%" valign="top">
<input type="checkbox" onclick="updateTextarea(this);if(this.checked)showLink(this.name);" name="checkbox" value="Our mission is to assist successful individuals and families in achieving their financial objectives. It is only through an understanding of our clients and their goals that we can truly provide them superior service and financial solutions.">
</td>
<td>
Our mission is to assist successful individuals and families in achieving their financial objectives. It is only through an understanding of our clients and their goals that we can truly provide them superior service and financial solutions.
<div id="checkboxDiv" style="visibility:hidden"><a href="#textarea1">Click here to return to top</a></div>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td valign="top">
<input type="checkbox" onclick="updateTextarea(this);if(this.checked)showLink(this.name);" name="checkbox2" value="Our mission is to provide objective financial advice and guidance with the highest level of professional service in building and perserving wealth for our clients.">
</td>
<td>
Our mission is to provide objective financial advice and guidance with the highest level of professional service in building and perserving wealth for our clients.
<div id="checkbox2Div" style="visibility:hidden"><a href="#textarea1">Click here to return to top</a></div>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td valign="top">
<input type="checkbox" onclick="updateTextarea(this);if(this.checked)showLink(this.name);" name="checkbox3" value="Our philosophy is based on the proactive process of capturing opportunity while managing risk. It is our mission to skillfully guide our clients' portfolios to meet their near and long-term objectives by navigating them through changing markets.">
</td>
<td>
Our philosophy is based on the proactive process of capturing opportunity while managing risk. It is our mission to skillfully guide our clients' portfolios to meet their near and long-term objectives by navigating them through changing markets.
<div id="checkbox3Div" style="visibility:hidden"><a href="#textarea1">Click here to return to top</a></div>
</td>
</tr>
Am I doing something wrong? Do links to anchor points even work in frames?