Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
¿Cómo obtener mi url en este ajax? Tengo una función pero no sé cómo usarla.

esta es mi función:

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

quiero usarlo aquí en mi código en lugar de repetirlo

 function forgotten() { if (force_mssa

entonces mi pregunta es cómo lo reemplazo y obtengo la URL correcta para cada ?????????????

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

En el primer caso, debe usar mode=physician&panel=forgotten&force_mssante=0 ,
en el segundo caso, debe usar mode=physician&panel=forgotten&force_mssante=1 .
Debe pasar como argumento GETQuery el texto después de ? .
Más de consultas GET: https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams

about 4 years ago · Juan Pablo Isaza Report

0

Puede utilizar un operador ternario en la url\

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

Debe tener un aspecto como este :

 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(); }, }); } }
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!