Category Archives: JavaScript

JavaScript

How to encode URI components in javascript?

JavaScript provides an encodeURIComponent() function to encode uri components. This function encrypt the special characters provided in the url such as “space , / ? : @ & = + $ #“. Syntax encodeURIComponent(uri) Example Html Result How to encode URI components in javascript? URI: codesolution.org/calculate-time-between-two-dates/ Encoded URI: codesolution.org%2Fcalculate-time-between-two-dates%2F Try it

How to Pass Value across Application or Post to url

To post value across Application or Post to url. Write the below code on the Source application. Event on which you want to post the value. Write the below code on the event. How to get value on other Application. Write the below code on Destination Application