I produce my url to inpout from other site with this syntax:
[login to view URL]
Everything works perfect.
When i hav this link:
[login to view URL] (T&T)&customer_code=1234&username=bertha
OR
[login to view URL](T&t)&customer_code=12%20(1&2%20)34&username=bertha(%201%20&%20B)
It doesnt work so fine. It the Regexp thats not working so fine.
Have this code to make this happen:
----------------------------------------
"use strict";
(function() {
/* Ändra här: */
var urlBind =
{
COMPANY_NAME: 'q1'
,CUSTOMER_CODE: 'q2'
,USERNAME: 'q3'
};
jQuery(function() {
for (var s in urlBind) {
var uval = getParameterByName(s);
if (uval) {
$PX(urlBind[s]).value(uval);
}
}
})
function getParameterByName(name, url) {
if (!url) url = [login to view URL];
name = [login to view URL](/[\[\]]/g, "\\$&");
var regex = new RegExp("[?&]" + name + "(=([^&#]*)|&|#|$)", "i"),
results = [login to view URL](url);
if (!results) return null;
if (!results[2]) return '';
return decodeURIComponent(results[2].replace(/\+/g, " "));
}
})();
---------------------------------
Hi.
After reading the job description carefully, I feel I have the skillset necessary to complete this task.
I am a senior web developer with 6 years of experience; primarily focusing on UX/UI updates.
I am ready to work with you on this project and if you provide me detailed info, I will start it immediately.
I am looking forward to working with you for the long term.
Thank you
$20 USD Om 1 dag
0,0 (0 omdömen)
0,0
0,0
5 frilansar lägger i genomsnitt anbud på $22 USD för detta uppdrag
Hello,
★★★★★ 8+ Year's Experience Javascript Expert ★★★★★
As a preferred freelancer, I can help you to write simple javascript and regexp solution.
After thoroughly analyzing this job I can assure you that your requirements match my area of expertise. I can do this job easily and swiftly with my knowledge and experience.
Looking forward to hearing back from you very soon!
Regards,
Shahnawaz U.
Hi, Dear client!
I am a professional web developer and I can fix this asap.
The best quality and accurate timeline is what I guarantee you.
Best regards.
Jaime.