$.ajax(
{
type: 'POST',
url: '/supplier/attachment/rename',
data:
{
_token : "{{ csrf_token() }}",
value_name : newName,
value_ID : attachmentId
},
dataType: 'json',
success: function(responseData)
{
$('#debug-placeholder').html(responseData);
},
beforeSend: function()
{
$('.selector').addClass('show_loading_icon');
},
complete: function()
{
$('.selector').removeClass('show_loading_icon');
}
});
- Ajax Call to rename a attachment
- The "_token" parameter is required to perform a ajax call using laravel
- Remove "_token" if this code is going to be used on a non laravel project
- The "_token" parameter is required to perform a ajax call using laravel
- Remove "_token" if this code is going to be used on a non laravel project
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.