Does anyone have a simple working example of how to use the HTTP class's encodeURI(theURL) method?
For example, this doesn't work:
Code: Select all
// Build param
var theParam = "this is a test";
// Encode Param
var theParamEncoded = encodeURI(theParam);
// Build URL
var theURL = "http://www.example.com/httplogerror.php?message=" + theParamEncoded;
//etc.
Code: Select all
var theParamEncoded = HTTP.encodeURI(theParam)
By the way, encodeURIComponent() returns the same.
Any help much appreciated.
Pat