Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

209
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda