<script language="JavaScript">
function oneButton()
{
var radiobut = document.the_form.V2;
if (radiobut.checked == true) {
document.the_form.V2.checked = false;
document.open("one.html","window_name","resizable=yes,scrollbars=yes,location=1,menubar=1,toolbar=1",target="_top"
}
}
function twoButton()
{
var radiobut = document.trisnav.V1;
if (radiobut.checked == true) {
document.the_form.V1.checked = false;
document.open("two.html","window_name","resizable=yes,scrollbars=yes,location=1,menubar=1,toolbar=1",target="_top"
}
}
</script>
<form name="the_form" action="get_list" method=post>
<table>
<tr><td><input type="radio" name="V1" value="VIEW_1" onClick="oneButton()" checked> VIEW ONE</td></tr>
<tr><td><input type="radio" name="V2" value="VIEW_2" onClick="twoButton()"> VIEW TWO</td></tr>
</table>
<p>
<a href="get_list?alpha=a">A</a> |
<a href="get_list?alpha=b">B</a> |
<a href="get_list?alpha=c">C</a> |
.
.
.
<a href="get_list?alpha=z">Z</a> |
<p><input type=text name="view_type_srch" size=20 maxlength=20>
<input type=submit value="Search">
<input type=reset value="Clear">
</form>
---
the above are what i have and it opens a new browser when i select one of the 2 radios. How do i make it to open in same browser?
The problem leads me to this approach is whenever i click on the hyperlink alphabet, the value of radio button doesn't pass, but it works fine when i do the search (view_type_srch), and i have the 2 radio buttons with name (V). Also, in the 'GET_LIST" procedure that i have, whenever you click on any alphabet, it will pass the alpha value and the view type as either VIEW_1 OR View_2
like this
<a href="get_list?alpha=a&V=VIEW_1">A</a>
But i Can't do this in the same html page because the value of radio buttion doesn't pass on, and that 's why I want to have it open to another page with similar look (change the default of view to View_2 and all my alpha link to VIEW_2) to to the same browser with my javascript above. please help me, thanks alot in advance.!!!!
[sig][/sig]
function oneButton()
{
var radiobut = document.the_form.V2;
if (radiobut.checked == true) {
document.the_form.V2.checked = false;
document.open("one.html","window_name","resizable=yes,scrollbars=yes,location=1,menubar=1,toolbar=1",target="_top"
}
}
function twoButton()
{
var radiobut = document.trisnav.V1;
if (radiobut.checked == true) {
document.the_form.V1.checked = false;
document.open("two.html","window_name","resizable=yes,scrollbars=yes,location=1,menubar=1,toolbar=1",target="_top"
}
}
</script>
<form name="the_form" action="get_list" method=post>
<table>
<tr><td><input type="radio" name="V1" value="VIEW_1" onClick="oneButton()" checked> VIEW ONE</td></tr>
<tr><td><input type="radio" name="V2" value="VIEW_2" onClick="twoButton()"> VIEW TWO</td></tr>
</table>
<p>
<a href="get_list?alpha=a">A</a> |
<a href="get_list?alpha=b">B</a> |
<a href="get_list?alpha=c">C</a> |
.
.
.
<a href="get_list?alpha=z">Z</a> |
<p><input type=text name="view_type_srch" size=20 maxlength=20>
<input type=submit value="Search">
<input type=reset value="Clear">
</form>
---
the above are what i have and it opens a new browser when i select one of the 2 radios. How do i make it to open in same browser?
The problem leads me to this approach is whenever i click on the hyperlink alphabet, the value of radio button doesn't pass, but it works fine when i do the search (view_type_srch), and i have the 2 radio buttons with name (V). Also, in the 'GET_LIST" procedure that i have, whenever you click on any alphabet, it will pass the alpha value and the view type as either VIEW_1 OR View_2
like this
<a href="get_list?alpha=a&V=VIEW_1">A</a>
But i Can't do this in the same html page because the value of radio buttion doesn't pass on, and that 's why I want to have it open to another page with similar look (change the default of view to View_2 and all my alpha link to VIEW_2) to to the same browser with my javascript above. please help me, thanks alot in advance.!!!!
[sig][/sig]