Creation of a JavaScript Function
4376
$$
- Posted:
- Proposals: 2
- Remote
- #131832
- Archived
Description
Experience Level: Intermediate
I have a function in JavaScript (attached).
I wish to create a new function, which accepts optional arguments. So, I now wish for the same actions, but instead of having 3 specified integers, I want to have one argument which is REQUIRED. Call it 'itemid'. I also want to have an infinite number of optional arguments called 'option_1', 'option_2' etc etc.
So, for example, the GET PHP post will have a varying number of variables depending on what is sent to the JavaScript function.
Eg. if the JS call sends 7 variables then the functino will have to GET: phpfile.php?var1=1&var2=1&var3=1....&var7=1
The bskt element will need to be updated like before as part of the function. You will need to think about how you are passing variables to PHP, for example, you may need to say there are "7" options being passed. etc.
It's a quick job. And I require someone urgently. DO NOT BID UNLESS YOU CAN COMPLETE THIS WORK IMMEDIATELY - WITHIN 3 HOURS.
I REPEAT. DO NOT BID UNLESS YOU CAN COMPLETE THIS WORK IMMEDIATELY.
I wish to create a new function, which accepts optional arguments. So, I now wish for the same actions, but instead of having 3 specified integers, I want to have one argument which is REQUIRED. Call it 'itemid'. I also want to have an infinite number of optional arguments called 'option_1', 'option_2' etc etc.
So, for example, the GET PHP post will have a varying number of variables depending on what is sent to the JavaScript function.
Eg. if the JS call sends 7 variables then the functino will have to GET: phpfile.php?var1=1&var2=1&var3=1....&var7=1
The bskt element will need to be updated like before as part of the function. You will need to think about how you are passing variables to PHP, for example, you may need to say there are "7" options being passed. etc.
It's a quick job. And I require someone urgently. DO NOT BID UNLESS YOU CAN COMPLETE THIS WORK IMMEDIATELY - WITHIN 3 HOURS.
I REPEAT. DO NOT BID UNLESS YOU CAN COMPLETE THIS WORK IMMEDIATELY.
Ryan J.
100% (3)Projects Completed
5
Freelancers worked with
7
Projects awarded
42%
Last project
8 Mar 2017
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies