OK, found the cause of the problem.
I had an HTML inserted in a div which has a form that the user has to
fill. The error appeared on clicking on the submit button.
I short, the html of the form is something like this:
<form id="adq_formulario" method="post" name="fadquisicion">
<table border="0" cellpadding="5" width="467" >
<tr>
<td colspan="2" class="titform">
<h2>Formulario para solicitud de material nuevo para adquisición</h2>
</td>
</tr>
<tr>
<td colspan="2" class="texto">
Los campos con <span class="obligatorio">(*)</span> son obligatorios
</td>
</tr>
<tr>
<td class="titulo" id="td_adq_titulo">Titulo del material:
<span class="obligatorio">(*)</span></td>
<td>
<INPUT id="adq_titulo" type="text" value="{TITULO}" name="titulo"
size="40" maxsize="200">
</td>
</tr>
<tr>
<td class="titulo" id="td_adq_autor">Autor o autores del material:
<span class="obligatorio">(*)</span>
</td>
<td>
<INPUT id="adq_autor" type="text" value="{AUTOR}" name="autor"
size="40" maxsize="200">
</td>
</tr>
</table>
</form>
Solution: eliminate the <form> tags. After that, it started working.
This is not the first time this happens to me. Why's prototype so
unhappy with form tags?
El día 1 de julio de 2010 10:33, Martín Marqués
<[email protected]> escribió:
> 2010/7/1 T.J. Crowder <[email protected]>:
>> FWIW, status = 0 is mentioned on the "bulletproof ajax requests" page
>> on the unofficial wiki:
>>
>> http://proto-scripty.wikidot.com/prototype:how-to-bulletproof-ajax-requests
>>
>> The contributor who added it said that it happens when the server
>> connection fails entirely (as opposed to a connection that works but
>> returns a 5xx error), perhaps beacuse the server is overloaded.
>>
>> That suggests you should look at your Apache config and logs.
>
> As stated before, no apache errors. Also, if I open the request (from
> firebug) on a new tab requests ends in time.
>
> Also, can't be server cause yesterday I was testing this from the same
> web server.
>
> --
> Martín Marqués
> select 'martin.marques' || '@' || 'gmail.com'
> DBA, Programador, Administrador
>
--
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador
--
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en.