Jump to content

Recommended Posts

Posted

Boa tarde a todos. Pessoal como resolver esta questão:

O botão Enviar abaixo está no automático, ou seja não preciso ficar clicando nele

o tempo todo para enviar o conteúdo do formulario .Ele mesmo se encarrega de fazer todo sozinho.

Só que tem um problema: No script não tem um limite de envio especificado. Como eu faço para especificar um limite de envio?

Ex-1: Após enviar 10 vezes o script para de executar.

Ex-2: Também quero enviar o formulario de 10 em 10 segundos. Muito obrigado pela atenção. Vejam:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Documento sem título</title>

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>

<script type="text/javascript">
 $(document).ready(function() {
window.document.forms[0].submit();
 });
</script>

</head>

<body >

<form action="formulario.php" method="post" name="tetete">

</body>
</html>

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.