hi :)
I have this form:
<form id="sub_immagini" enctype="multipart/form-data" method="post"
action="./../js/ajax/upload_files.php">
<input type="hidden" name="sub_tipo" value="foto"/>
<div class="materiale">
<label for="new_foto_1">File:</label>
<input type="file" name="new_foto_1" id="new_foto_1" />
<label for="alias_foto_1">Nome:</label>
<input type="text" name="alias_foto_1" id="alias_foto_1" />
<label for="tags_foto_1">Tags per l'immagine:</label>
<textarea name="tags_foto_1" id="tags_foto_1"></textarea>
<div style="clear:both"></div>
<input type="submit" value="Carica"/>
</div> <!-- .materiale -->
</form>
jquery code is simple:
$('#sub_immagini').ajaxForm();
if I submit it while it's empty it seems to work (with firebug I see
the post request, even if I get no response, and that's strange), if I
try to upload a file, it does nothing (the page is reloaded, as if
there was no ajaxForm bind)...
what am I doing wrong?
thanks :)