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

200
Views
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 answers
Answer question

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 Report

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 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!