Error: ClientRect is not defined PHP JQUERY and PHP

0

the order that loads my scripts

<script type="text/javascript" src="../js/jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="../js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/popper.min.js"></script>
<script type="text/javascript" src="../js/registros.js"></script>

I have the following error: Uncaught ReferenceError: ClientRect is not defined (in the chrome console).

I want to do the following: I want to edit the fields of a participant according to their ID, for this I ask you to enter your ID, and from there I verify if the ID exists, if it exists I extract the data of that participant .. I do not know why the error is sending me, Am I doing wrong ?. I hope you help me. I'm still sent the error that I assigned to him alert ('Error: L56 +');

$(document).on('submit', '#form-cedula', function(event) {
	event.preventDefault();
    
    var CEDULA = $('#CEDULA').val();
    alert(CEDULA); //pense que no me estaba agarrando la cedula, pero si lo muestra bien
    $.ajax({
    		url: 'get_Participante.php',
    		type: 'post',
    		dataType: 'json',
    		data: {
    			CEDULA:CEDULA
    		},
    		success: function (data) {

    	    $('#CEDULA').val(data.CEDULA);
			$('#UNIVERSIDAD').val(data.UNIVERSIDAD);
			$('#PROFESION').val(data.PROFESION);
			$('#NOMBRES').val(data.NOMBRES);
			$('#APELLIDOS').val(data.APELLIDOS);
    		},
    		error: function(){
    			alert('Error: L56+');
    		}
    	});

});
<form id="form-cedula">
  <h2 class="form-signin-heading text-center ">Registrarse</h2>
  <div class="form-group mt-3">
    <h6 class="text-center">Cedula</h6>
    <input type="text"  id="CEDULA"  placeholder="Introduzca su cedula" required>
    
  </div>
 
 <input class="btn btn-primary" type="submit" value="Verificar">
</form>

require_once('../connection.php');

if(isset($_POST['CEDULA'])){
	$CEDULA = $_POST['CEDULA'];
   $sql = "SELECT * FROM PARTICIPANTE WHERE CEDULA='$CEDULA'";
	$st=oci_parse($conn,$sql);
	$row=oci_execute($st);

	if ($row>0) {
		    $return['CEDULA'] = $row['CEDULA'];
			$return['UNIVERSIDAD'] = $row['UNIVERSIDAD'];
			$return['PROFESION'] = $row['PROFESION'];
			$return['NOMBRES'] = $row['NOMBRES'];
			$return['APELLIDOS'] =$row['APELLIDOS']; 		
	}
	echo json_encode($return);
	
}
    
asked by Hernelio Long 07.03.2018 в 18:17
source

0 answers