P
Pascal Batzli Jr
Hello,
I have a strange situation happening on the code below. When I first
load the page, as I change any of the three combo boxes I have created,
the onchange event is fired and the form should be submitted, but it
isn't for some weird reason. However, after I press the ok button, it
submits the form, and then the combo boxes start working normally. In
IE, everything works fine.
I appreciate any help. Thank you.
<html>
<head>
<title>.:Guimarães Comercial:.</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script language="javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000"
background="figuras/laretal.jpg">
<br>
<form name="frmlateral" method="post" action="lateral.asp">
<p> <br>
<select name="cbonivel1" size="1"
onChange="javascript:atualizar();">
<option value=1 selected>Instrumentos</option>
<option value=2>Móveis p/ Igreja</option>
<option value=3>Diversos</option>
</select>
<br>
<select name="cbonivel2" size="1"
onChange="javascript:atualizar();">
<option value=1 selected>Inst. De Corda</option>
<option value=2>Inst. De Percusão</option>
<option value=3>Inst. De Sopro</option>
<option value=4>Inst. De Teclado</option>
<option value=5>Listão Weril</option>
</select>
<br>
<select name="cbonivel3" size="1"
onChange="javascript:atualizar();">
<option value=1 selected>Violino</option>
<option value=2>Viola</option>
<option value=3>Violoncello</option>
<option value=4>Contra Baixo (Rabecão)</option>
<option value=5>Violões Yamaha</option>
<option value=6>Violões Eagle</option>
<option value=7>Violões Di Giorgio</option>
<option value=8>Violões Importados</option>
</select>
<input type="submit" name="Submit" value="ok"
onClick="javascript:busca1();">
</p>
<p> </p>
<input type="text" name="textfield" size="8">
<input type="submit" name="Submit2" value="ok">
</form>
<p><br>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash..cab#version=5,0,0,0"
width="150" height="160">
<param name=movie value="figuras/banner.swf">
<param name=quality value=high>
<embed src="figuras/banner.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="150" height="160">
</embed>
</object> <br>
<a href="#"
onClick="MM_openBrWindow('atendimento.htm','','width=310,height=240')"><img
src="figuras/atendimento.jpg" width="146" height="43" border="0"></a>
</p>
</body>
<script language="javascript">
function atualizar()
{
frmlateral.submit();
}
function busca1()
{
alert("teste3");
}
</script>
</html>
I have a strange situation happening on the code below. When I first
load the page, as I change any of the three combo boxes I have created,
the onchange event is fired and the form should be submitted, but it
isn't for some weird reason. However, after I press the ok button, it
submits the form, and then the combo boxes start working normally. In
IE, everything works fine.
I appreciate any help. Thank you.
<html>
<head>
<title>.:Guimarães Comercial:.</title>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1">
<script language="javascript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000"
background="figuras/laretal.jpg">
<br>
<form name="frmlateral" method="post" action="lateral.asp">
<p> <br>
<select name="cbonivel1" size="1"
onChange="javascript:atualizar();">
<option value=1 selected>Instrumentos</option>
<option value=2>Móveis p/ Igreja</option>
<option value=3>Diversos</option>
</select>
<br>
<select name="cbonivel2" size="1"
onChange="javascript:atualizar();">
<option value=1 selected>Inst. De Corda</option>
<option value=2>Inst. De Percusão</option>
<option value=3>Inst. De Sopro</option>
<option value=4>Inst. De Teclado</option>
<option value=5>Listão Weril</option>
</select>
<br>
<select name="cbonivel3" size="1"
onChange="javascript:atualizar();">
<option value=1 selected>Violino</option>
<option value=2>Viola</option>
<option value=3>Violoncello</option>
<option value=4>Contra Baixo (Rabecão)</option>
<option value=5>Violões Yamaha</option>
<option value=6>Violões Eagle</option>
<option value=7>Violões Di Giorgio</option>
<option value=8>Violões Importados</option>
</select>
<input type="submit" name="Submit" value="ok"
onClick="javascript:busca1();">
</p>
<p> </p>
<input type="text" name="textfield" size="8">
<input type="submit" name="Submit2" value="ok">
</form>
<p><br>
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash..cab#version=5,0,0,0"
width="150" height="160">
<param name=movie value="figuras/banner.swf">
<param name=quality value=high>
<embed src="figuras/banner.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="150" height="160">
</embed>
</object> <br>
<a href="#"
onClick="MM_openBrWindow('atendimento.htm','','width=310,height=240')"><img
src="figuras/atendimento.jpg" width="146" height="43" border="0"></a>
</p>
</body>
<script language="javascript">
function atualizar()
{
frmlateral.submit();
}
function busca1()
{
alert("teste3");
}
</script>
</html>