var url = relativeURI+'/rest/PPS/Prod/'+encodeURIComponent(prod)+'/Section/'+encodeURIComponent(section);
$j.ajax({
url: url,
type: 'POST',
error: function(){
alert('Error');
},
success: function(){
alert('ItWorks');
}
});
}
In this ajax call, if I have '/' in the parameters prod or sec, then there is an error. The request does not even hit the server. I am using the encodeURIComponent over the parameters. It works fine for other parameters that do not have '/' in them. Please help.