Uncaught ReferenceError: LocalEmpCallback is not defined


In one view I have the following code:

<tr id="[email protected]" class="ct-row" data-status="@value.PerfilEmpleadoCentroID">

    <td onclick="LocalEmpCallback(@value.EmpleadoID)">
        <p class="list-text">@value.EmpleadoID</p>

    <td onclick="LocalEmpCallback(@value.EmpleadoID)">
        <p class="list-text">@value.IDEmpleadoCentro</p>

    <td onclick="LocalEmpCallback(@value.EmpleadoID)">
        <p class="list-text"><span class="label @labelTipo",id="labeltext">@labelText</span></p>

    <td onclick="LocalEmpCallback(@value.EmpleadoID)">
        <p class="list-text">@value.InfoContacto.Nombre @value.InfoContacto.Apellidos</p>


I also have the following javascript functions outside the document.ready:

function LocalEmpCallback(IDTipo) {
    console.log("Pasa por aquí");
    GListCallback(2, IDTipo);

and the other function:

function GListCallback(tipo, IDTipo) {

    var url = '/Permisos/Editar?id=-1&empID=' + IDTipo;
    window.location.href = url;

I do not know what I'm doing wrong but I always get the error of:


Uncaught ReferenceError: LocalEmpCallback is not defined.

Thanks for the help

asked by Adrián Blanco 16.11.2018 в 11:45

0 answers