Find Jobs
Hire Freelancers

Javascript parser code update

$10-30 USD

Dibatalkan
Disiarkan sekitar 7 tahun yang lalu

$10-30 USD

Dibayar semasa penghantaran
Max budget for this project is $10. The Issue: The code below can't process parameters with spaces, percent signs or () in it. Example URLS: [login to view URL] (awf_first)=first&name (awf_last)=last&email=email [login to view URL](awf_first)=first&name%20(awf_last)=last&email=email The code below needs to be able to parse the parameters above and fill a form with the values. Please don’t take away any functionality of the script, just add the ability to process the above URL examples. -Thanks Here is the code: <script type="text/javascript"> function _id(e){return [login to view URL](e)} var QueryString = function () { // This function is anonymous, is executed immediately and // the return value is assigned to QueryString! var query_string = {}; var query = [login to view URL](1); var vars = [login to view URL]("&"); for (var i=0;i<[login to view URL];i++) { var pair = vars[i].split("="); // If first entry with this name if (typeof query_string[pair[0]] === "undefined") { query_string[pair[0]] = decodeURIComponent(pair[1]); // If second entry with this name } else if (typeof query_string[pair[0]] === "string") { var arr = [ query_string[pair[0]],decodeURIComponent(pair[1]) ]; query_string[pair[0]] = arr; // If third or later entry with this name } else { query_string[pair[0]].push(decodeURIComponent(pair[1])); } } return query_string; }(); if([login to view URL]){ _id('name_f-0').value=[login to view URL]; _id('name_1-0').value=[login to view URL]; _id('email-0').value=[login to view URL]; _id('password').value=[login to view URL]; _id('contact').value=[login to view URL]; } // [login to view URL] // ex: [login to view URL] // [login to view URL] // [login to view URL] // [login to view URL] // [login to view URL] </script>
ID Projek: 13685513

Tentang projek

2 cadangan
Projek jarak jauh
Aktif 7 tahun yang lalu

Ingin menjana wang?

Faedah membida di Freelancer

Tetapkan bajet dan garis masa anda
Dapatkan bayaran untuk kerja anda
Tuliskan cadangan anda
Ianya percuma untuk mendaftar dan membida pekerjaan
2 pekerja bebas membida secara purata $19 USD untuk pekerjaan ini
Avatar Pengguna
A proposal has not yet been provided
$13 USD dalam 1 hari
0.0 (0 ulasan)
0.0
0.0

Tentang klien

Bendera UNITED STATES
Lakeland, United States
5.0
10
Kaedah pembayaran disahkan
Ahli sejak Feb 15, 2010

Pengesahan Klien

Terima kasih! Kami telah menghantar pautan melalui e-mel kepada anda untuk menuntut kredit percuma anda.
Sesuatu telah berlaku semasa menghantar e-mel anda. Sila cuba lagi.
Pengguna Berdaftar Jumlah Pekerjaan Disiarkan
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuatkan pratonton
Kebenaran diberikan untuk Geolocation.
Sesi log masuk anda telah luput dan telah dilog keluar. Sila log masuk sekali lagi.