Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

214
Vistas
how get my url in this ajax? i have a function but dont know how use it?

this is my function :

functiohtml(i18n.tr(html));
        $("#rpps").focus();}
      })
    }

i want to use it here in my code instead of repeating myseld

function forgotten() {
    if (force_mssa

so my question is how i replace it and get the right Url for each ?????????????

over 4 years ago · Santiago Trujillo
2 Respuestas
Responde la pregunta

0

At the first case you sould use mode=physician&panel=forgotten&force_mssante=0,
at the second case you should use mode=physician&panel=forgotten&force_mssante=1.
You should pass as argument GETQuery the text after the ?.
More from GET queries: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams

over 4 years ago · Santiago Trujillo Denunciar

0

You can use a ternary operator in the url\

index_content.php?mode=physician&panel=forgotten&force_mssante="
+ (login_physician_choice == "extern" ? "1" : "0")

it should look like this :

function forgotten() {
    if (force_mssante_for_externals) {
        $.ajax({
            url: "index_content.php?mode=physician&panel=forgotten&force_mssante=" + (login_physician_choice == "extern" ? "1" : "0") + ",
            success: function (html) {
                $(".panel-body").html(i18n.tr(html));
                $("#rpps").focus();
            },
        });
    }
}
over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda