jemz — 2013-07-11T10:50:18-04:00 — #1
Hi, can i ask how can i encode paramters in the url,because i am passing variables to other page and i want that the url will encoded or the value of paramter ,.i am using window.open.
Thank you in advance.
pullo — 2013-07-11T14:00:17-04:00 — #2
See also: http://stackoverflow.com/questions/75980/best-practice-escape-or-encodeuri-encodeuricomponent
jemz — 2013-07-12T05:46:53-04:00 — #3
Thank you for the reply...so this is intended only for the query string as for encodeURI and encodeURIComponent?...but how can i encode if i have this kind of parameter
now i don't want the user know the empid is 4,is it possible to do some hash something like this
because i am afraid that if the user will change the url or something like he will guess and change this to no. 5 or any no... the new page will load and some information will be seen.
can you help me on this please.
pullo — 2013-07-12T06:36:10-04:00 — #4
Then you need some kind of authentication system in place.
A user should not be able to get at sensitive information by guessing a url.
Simple as that, I'm afraid.
jemz — 2013-07-12T07:12:30-04:00 — #5
Thank you pullo