This is my current attempt using encodeURIComponent to no avail...
Now I'm getting 500 Internal server error. But the exact same post works in PHP,
it's just when I use Jquery's ajax I'm having issues.
Code:
function openNewTkt() {
var uri='http://cutnedge.info/index.php/site/post_ticket';
encodeURIComponent(uri);
var form_data = {
property_manager: $('#property_manager').val(),
property_ID: $('#property_ID').val(),
property_name: $('#property_name').val(),
date_posted: $('#date_posted').val(),
value: $('#spinner').val(),
ajax: '1'
};
$.ajax({
url: uri,
type: 'POST',
data: form_data,
success: function(msg) {
$('#main_content').html(msg);
}
});
return false;
}
Bookmarks