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

97
Views
Pass data to redirect page JS

I use fire base auth with javascript and i want to send client to his profile page using his id i want to send the userId through the window.location.href

I tried jquery post request but i didnt know how to send or recieve the data properly

I need an easy solution to my problem, Thanks.

$.post(
            "./index.html",
            {
              id: user.uid,
            },
            function (data, status) {
              alert("Data: " + data + "\nStatus: " + status);
            }
          );
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

By using query parameters you can pass data to redirect URL ./index.html?userId=1 and inside that page

you should have a read query parameter logic like.,

const params = new URLSearchParams(window.location.search)
for (const param of params) {
  console.log(param)
}

I hope this solutions will work in your case

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!