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

134
Views
How to write pretty URL based from data?

How to write pretty url from these data? I need something like this https://mywebsite.com/admin/leads/count/data1/data2/data3

Thanks in advance. :)

var x = {data1, data2, data3};

$.ajax({
  url: 'https://mywebsite.com/admin/leads/count/',
  data: x,
    type: 'GET',
    contentType: "application/x-www-form-urlencoded",
    datatype: "json",
    async: false,
    success: function(data){ 
      $("#leads_count").val(data);
      leadsCtr = data;
    }
});

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

0

Take url as a string and manipulate it like this

    var x = {data1, data2, data3};
    var string = 'https://mywebsite.com/admin/leads/count/';
    var fstring = string+x.data1+'/'+x.data2+'/'+x.data3;
    $.ajax({
    url: fstring,
    data: x,
    type: 'GET',
    contentType: "application/x-www-form-urlencoded",
    datatype: "json",
    async: false,
    success: function(data){ 
  $("#leads_count").val(data);
  leadsCtr = data;
}

});

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!