D
DaFallus
I'm trying to write a somewhat simple page with dependent drop-down
boxes. Unfortunately the entire page is written through PL/SQL so that
makes it even more difficult for me to trouble shoot. I know hardly
anything when it comes to JavaScript, and I keep getting an error
saying:
"Error: Object required
Line: 31
Char: 1
Code: 0"
The funny thing is that I ONLY get this error with Internet Explorer.
The page works just fine in Firefox but most of my clients will be
using IE so this has been driving me nuts. Here is the code on the page
that is throwing the error (the page is displayed in a hidden frame).
<script language="javascript">
function lookUp( cntry_name )
{
document.forms[0].p_cntry_name.value = cntry_name;
document.forms[0].submit();
}
</script>
<script language="javascript">
function lookUpCounty( state_name )
{
document.forms[0].p_state_name.value = state_name;
document.forms[0].submit();
}
</script>
<script language="javascript">
function lookUpWell(welltype)
{
document.forms[0].well_type.value = welltype;
document.forms[0].submit();
}
</script>
<FORM ACTION="dev_dcd.frame_hidden" METHOD="POST">
<INPUT TYPE="hidden" NAME="p_cntry_name" VALUE="">
<INPUT TYPE="hidden" NAME="p_state_name" VALUE="">
<INPUT TYPE="hidden" NAME="p_county_name" VALUE="">
</FORM>
<script language="javascript">
with( parent.mainFrame )
{
addToList( "No Options", "" );
document.forms[0].p_county_name.length = 0;
addCounty( "No Options", "" );
document.forms[0].p_county_name.selectedIndex = 0;
}
</script>
Any help will be greatly appreciated!
boxes. Unfortunately the entire page is written through PL/SQL so that
makes it even more difficult for me to trouble shoot. I know hardly
anything when it comes to JavaScript, and I keep getting an error
saying:
"Error: Object required
Line: 31
Char: 1
Code: 0"
The funny thing is that I ONLY get this error with Internet Explorer.
The page works just fine in Firefox but most of my clients will be
using IE so this has been driving me nuts. Here is the code on the page
that is throwing the error (the page is displayed in a hidden frame).
<script language="javascript">
function lookUp( cntry_name )
{
document.forms[0].p_cntry_name.value = cntry_name;
document.forms[0].submit();
}
</script>
<script language="javascript">
function lookUpCounty( state_name )
{
document.forms[0].p_state_name.value = state_name;
document.forms[0].submit();
}
</script>
<script language="javascript">
function lookUpWell(welltype)
{
document.forms[0].well_type.value = welltype;
document.forms[0].submit();
}
</script>
<FORM ACTION="dev_dcd.frame_hidden" METHOD="POST">
<INPUT TYPE="hidden" NAME="p_cntry_name" VALUE="">
<INPUT TYPE="hidden" NAME="p_state_name" VALUE="">
<INPUT TYPE="hidden" NAME="p_county_name" VALUE="">
</FORM>
<script language="javascript">
with( parent.mainFrame )
{
addToList( "No Options", "" );
document.forms[0].p_county_name.length = 0;
addCounty( "No Options", "" );
document.forms[0].p_county_name.selectedIndex = 0;
}
</script>
Any help will be greatly appreciated!