Ver Mensaje Individual
  #8 (permalink)  
Antiguo 25/09/2008, 01:38
paulamg
 
Fecha de Ingreso: septiembre-2008
Mensajes: 33
Antigüedad: 15 años, 8 meses
Puntos: 0
Respuesta: Fomulario con 3 action y un solo botón, problema con Firefox

Por las pruebas que he estado haciendo, el problema está en este código, olvidemonos del onload ya que si el botón (name="button1") no funciona al pulsarlo es imposible que funcione el onlad. Ni aún cambiando document. por this. funciona en Firefox

Código HTML:
<script language=javascript>
<!--
function OnButton1()
{


document.soci.action = "http://www.xxxxxxxxxxx.xx/index.php?action=member_login" // First target
document.soci.target = "iframe1"; // Open in a iframe
document.soci.submit(); // Submit the page
document.login.action = "http://www.yyyyyyyyyyyy/index.php?" // Second target
document.login.target = "iframe2"; // Open in a iframe
document.login.submit(); // Submit the page
document.loginform.action = "aaaaaaaa.php" // Second target
document.loginform.target = "iframe3"; // Open in a iframe
document.loginform.submit(); // Submit the page
// Submit the page
return true;
}
-->
</script>

<form action= "http://www.midominio.es?page_id=18" method=post id="todo" name="todo">
<INPUT type="submit" value="" name="button1" onClick="return OnButton1();">
</form>