Skip to content

Instantly share code, notes, and snippets.

// Вмомента имаме това
<prdpublicationnode>
Aluminium radiators
</prdpublicationnode>
<prdpublicationnode>
Gietjeren radiators
</prdpublicationnode>
Meta tag:
<meta name="csrf-token" content="{{ csrf_token() }}">
Link for sending the ajax like button or smth else:
<a href="{{ url('drlresult') }}" class="submit-selection" data-link="{{ url('getAjax') }}" data-token="{{ csrf_token() }}">Radiatorselectie opslaan/toevoegen</a>
ajax setup in the beggining of JS after document ready:
$.ajaxSetup({
headers: {
'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>jQuery UI Draggable - Default functionality</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css">
<link rel="stylesheet" href="/resources/demos/style.css">
<style>
#draggable { width: 70px; height: 70px; padding: 0.5em; border-radius: 50%; border: 5px solid red; }