% in ajax url issue
% in ajax url issue
I use jQuery.ajax POST to post data to my MS SQL Server using ColdFusion Web server.
When user has % in the data then it wipe out all text field, if user content does not have % sign then it go through to server and add or modify the data.
Is it possible the web server encode % for some server code for this issue?
Your help and information is great appreciated,
Regards,
Iccsi,
Here is my sample code,
jQuery("#Submit").click(function(event) {
event.preventDefault();
jQuery.ajax({
url:
"Myserver.cfc?method=MyMethod&MyData="
jQuery("#txtMyData").val()
type: "POST",
success: function(data)
{
alert( "Data update completed");
}
}
});