JavaScript - Simple URL / parameter generator using encoding
£20-250 GBP
Đang triển khai
Đã đăng vào khoảng 12 năm trước
£20-250 GBP
Thanh toán khi bàn giao
(The detail has also been included in the attached word file)
The URL generator requirements
The URL generator should have three boxes for the user to input values. Each input box contains the value that the three parameters should have.
SACCC=____
SACED=_____
SACCO=_____
When the values are entered, they are encoded using the following JavaScript command:
encodeURIComponent
Once encoded they should then be added to a final URL. Creating something like this for example:
[login to view URL]
Please ensure that there is validation on the form so that if any of the parameter input boxes are missing data when the submit button is hit, an alert box appears notifying them of missing data.
Background to the task
We use a URL with 3 parameters to dynamically change the content and hidden form fields on the web page. This web page is therefore dynamic and the same web page is used for various different visitors.
We redirect pages from a vanity URL (one that’s easy to remember) to the real one which contains all of the parameters. For example:
[login to view URL]
is redirected to
[login to view URL]
The CMS that manages the redirects encodes special characters automatically. This is causing some confusion at the moment. So to help the process I would like to have a URL generator developed.