0
У меня есть файл edit.blade.php. Я хочу, чтобы загрузить содержимое в DIV с нагрузкой AJAXне загружается содержимое удаленного файла
@if(Auth::check() && Auth::user()->admin)
@section('modal_body')
@if($errors->any())
<div class='alert alert-danger'>
<a href="#" class="close" data-dismiss="alert">×</a>
@foreach($errors->all() as $error)
{{ $error }} <br/>
@endforeach
</div>
@endif
{{ Form::open(array('id' =>'formuser-create', 'role' => 'form', 'class' => 'form-horizontal')) }}
<div class="form-group">
{{ Form::label('user', 'Nombre de usuario', array('class' => 'col-md-4 control-label')) }}
<div class="col-md-5">
{{ Form::text('user','', array('placeholder' => 'Introduce la contraseña...', 'class' => 'form-control input-md')) }}
<div id="user_error"></div>
</div>
</div>
<div class="form-group">
{{ Form::label('email', 'Email', array('class' => 'col-md-4 control-label')) }}
<div class="col-md-5">
{{ Form::text('email','', array('placeholder' => 'Introduce el email...', 'class' => 'form-control input-md')) }}
<div id="email_error"></div>
</div>
</div>
<div class="form-group">
{{ Form::label('es_admin', '¿Es administrador?', array('class' => 'col-md-4 control-label')) }}
<div class="col-md-5">
{{ Form::checkbox('es_admin','1') }}
</div>
</div>
@stop
Я хочу, чтобы загрузить содержимое в DIV, но не получить загрузки
Вот мой файл, в котором я называю нагрузку, но Я понимаю, как статус ответа 404 не найден
var modal_title = $(this).find('.modal-title');
var modal_body = $(this).find('.modal-body');
//var modal_footer = $(this).find('.modal-footer');
switch(accion)
{
case 'create':
modal_title.html('<i class="fa fa-user-plus"></i> Nuevo usuario');
break;
case 'edit':
modal_title.html('<i class="fa fa-pencil fa-fw"></i> Editar usuario');
modal_body.load('includes/edit.blade.php');
break;
ошибка будет забросил:
Failed to load resource: the server responded with a status of 404 (Not Found)