Changeset 8513cb6 in prototipo_portal_2018


Ignore:
Timestamp:
Jun 22, 2015, 11:04:09 AM (9 years ago)
Author:
Pedro Buitrago <pbuitrago@…>
Branches:
master
Children:
36a8003
Parents:
9631190
Message:

Se modifico el archivo index.html agregando para cada formulario (verificar - firmar) una div diferente para mostrar las respuestas de las operaciones y se modifico y se agrego y modifico la función que captura el reset de cada formulario para lispiar los campos

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WebContent/index.html

    r9631190 r8513cb6  
    393393                                                //alert(html);
    394394                                                alert("ver respuesta")
    395                                                 document.getElementById("respuesta").innerHTML = html;
     395                                                document.getElementById("respuestaVerificacion").innerHTML = html;
    396396                    },
    397397                        error: function(response) {
    398398                                //Que se ejecuta cuando finalice la petición de con error
    399                                                 $("#respuesta").html('Error...!!!');
     399                                                $("#respuestaVerificacion").html('Error...!!!');
    400400                                        }
    401401            });
     
    410410        <script>
    411411                $(document).ready(function() {
    412                 $("#reset").click(function() {       // apply to reset button's click event
    413                         $("#respuesta").html('');
     412                $("#resetVerificacion").click(function() {       // apply to reset button's click event
     413                        $("#respuestaVerificacion").html('');
    414414                });
    415415        });
    416416        </script>
    417417       
     418         <!--Función que cactura el evento del button reset del formulario firmar
     419            y limpia el div respuesta (tabla de la firma)-->
     420       <script>
     421                $(document).ready(function() {
     422                $("#reset").click(function() {       // apply to reset button's click event
     423                        $("#respuesta").html('');
     424                });
     425        });
     426        </script>
     427
    418428       
    419429        <!--Funcion para el manejo de un archivo json
     
    500510                                                                <br>
    501511                                                                <button type="submit" class="btn btn-primary">Enviar</button>
    502                                                                 <button type="reset" class="btn btn-default">Limpiar</button>
     512                                                                <button type="reset" id="reset"  class="btn btn-default">Limpiar</button>
     513                                                                <br>
     514                                                                <br>
     515                                                                <div id="respuesta"> </div>
     516
    503517                                                        </form>
    504518                                                        <br>
     
    517531                                                                <br>
    518532                                                                <button type="submit" class="btn btn-primary">Enviar</button>
    519                                                                 <button type="reset" id="reset" class="btn btn-default">Limpiar</button>
    520                                                                 <br>
    521                                                                 <br>
    522                                                                
     533                                                                <button type="reset" id="resetVerificacion" class="btn btn-default">Limpiar</button>
     534                                                                <br>
     535                                                                <br>
     536                                                                <div id="respuestaVerificacion"> </div>
     537
    523538                                                        </form>
    524539                                                </div>
     
    540555                -->
    541556               
    542                 <div id="respuesta"> </div>
    543557                <p>
    544558                <div id="log" style="white-space: pre; font-family: monospace;"></div>
Note: See TracChangeset for help on using the changeset viewer.