Ver Mensaje Individual
  #3 (permalink)  
Antiguo 02/03/2011, 20:23
ZeThito
 
Fecha de Ingreso: septiembre-2010
Mensajes: 147
Antigüedad: 13 años, 7 meses
Puntos: 3
Respuesta: Subir un archivo con jQuery.

:D Gracias por responder.

Ya lo he logrado :D

Dejo el script:
Código Javascript:
Ver original
  1. <script type="text/javascript" src="/web/js/jquery.iframe-post-form.min.js"></script>
  2. <script type="text/javascript"><!--
  3. $(function ()
  4. {
  5.     $('form').iframePostForm
  6.     ({
  7.          post : function ()
  8.         {
  9.             if(
  10.             $("#nombre").val() &&
  11.             $("#email").val() &&
  12.             $("#idCiudad").val() &&
  13.             $("#idCategoria").val() &&
  14.             $("#idSubcategoria").val() != 0 &&
  15.             $("#titulo").val() &&
  16.             $("#tipo").val() != 0 &&
  17.             $("#math").val() != 0
  18.         ){
  19.            
  20.         $('#formReg').find('dl').slideUp('100', function(msg){
  21.                     $('#formReg').html('<h1>Muchas Gracias</h1> <p>Se ha enviado el código de eliminación a su correo. <a href=\"/web/index.php\">Ir a la página principal</a> !</p>');
  22.         });
  23.        
  24.         }
  25.         },
  26.         complete : function (response)
  27.         {
  28.             jaeFunctions.setMessage(response, 'success', false, true);
  29.         }
  30.     });
  31. });
  32. //--></script>