I am trying to convert my html dom into pdf and send that pdf as an attachment with email. I am using Vue2 in frontend along with html2pdf.js. I am using this to download the dom as pdf and sending the pdf as email attachment. The pdf which is directly downloading is opening correctly but ..
Category : javascript
i´m traying to upload one video with dropzone and laravel, but when y select other type dropzone upload file ok and don´t return error and i need that only accept video type and if i select other type return a message. my actual code is: var var15671147011688676454ble = ”; @if(isset($restaurant) && $restaurant->hasMedia(‘video’)) var15671147011688676454ble = { ..
I’m trying to use select2 retrieving large data in my dropdown. Getting 500 Internal Server Error in my console log. I have store token in HTML meta tag. <meta name="csrf-token" content="{{ csrf_token() }}"> And sending a token as a parameter in my POST request. var CSRF_TOKEN = $(‘meta[name=”csrf-token”]’).attr(‘content’); $(document).ready(function(){ $( “#test” ).select2({ ajax: { url: ..

I am trying to append data into HTML using JS. I have roles and their respective permissions, data are fetching using laravel ORM. I am using nested each Jquery function to append permissions but didn’t get a solution. Please guide me on how can I append data into a table? JS: $( document ).ready(async function() ..
Index.blade.php <!– START: modal[AllData]–> <div class="modal fade" id="getTransferOperationData" role="dialog"> <div class="modal__content modal__content–xl p-10 text-left" style="width: auto; margin: 15px;"> <button type="button" class="btn btn-default close" data-dismiss="modal" aria-label="Close" style="float: right; /*border: 1px solid #ccc*/"> <span style="font-weight:bold; color: red">Kapat</span> </button> <div class="mt-20"> <p> ….. </p> </div> </div> </div> <!– END: modal[AllData]–> I want to show all data on modal ..
In MVC project, based on laravel 5.2, for preserving values (not keys) in select2 dropdown select we trigger this controller when we’re looking for the SSP term: public function get_ssp(Request $request) { $term = $request->get(‘term’); $ssp_list = SspCompanyList::where(‘ssp_company_name’, ‘LIKE’, ‘%’. $term[‘term’] .’%’) ->get([‘ssp_company_id as id’, ‘ssp_company_name as text’]); return [‘results’ => $ssp_list]; } And then ..
i am searching for a solution for the following problem. The Laravel Docs just give me a solution for defined Values. My database for looks like Tours | ID| Tourname | Year | Week | | 1 | —–ABC | –20 | –51 | | 2 | —–XYZ | –20 | –52 | | 3 ..
app.js require(‘./bootstrap’); window.Vue = require(‘vue’); Vue.component(‘exampleComponent1’, require(‘./components/exampleComponent1.vue’)); Vue.component(‘exampleComponent2’, require(‘./components/exampleComponent2.vue’)); const app = new Vue({ el: ‘#app’ }); from the above code, I want to pass data from exampleComponent1 to exampleComponent2 when some event has occurred in exampleComponent1. What is the optimal solution for this ?? Sourc..
require(‘./bootstrap’); window.Vue = require(‘vue’); Vue.component(‘exampleComponent1’, require(‘./components/exampleComponent1.vue’)); Vue.component(‘exampleComponent2’, require(‘./components/exampleComponent2.vue’)); const app = new Vue({ el: ‘#app’ }); from the above code, I want to pass data from exampleComponent1 to exampleComponent2 when some event has occurred in exampleComponent1. What is the optimal solution for this ?? Sourc..
The title is a little complicated. I want to transfer a product to a company. I can transfer the same product to another company later. But I didn’t know how to do it. I have 3 select’s. 1.select imei 2.select companies 3.select the cars of that company When I select the imei address from the ..
This are my tailwindcss errors: npm WARN @tailwindcss/[email protected] requires a peer of [email protected]^1.0 but none is installed. You must install peer dependencies yourself. npm WARN @tailwindcss/[email protected] requires a peer of [email protected]^1.5.0 but none is installed. You must install peer dependencies yourself. npm WARN @tailwindcss/[email protected] requires a peer of [email protected]^1.8.3 but none is installed. You must ..
I have the following form in the view: <form class="form-inline" method="POST" action="{{route(‘dsp.report’)}}"> @csrf <!– {{ csrf_field() }} –> <div class="col-sm-2 form-group"> <label>Range one: </label><input type="text" class="form-control" id="date_from" name="date_from" placeholder="Date from range"> </div> <div class="col-sm-2 form-group"> <label>Range two: </label><input type="text" class="form-control" id="date_to" name="date_to" placeholder="Date to range"> </div> <div class="col-sm-2 form-group"> <label>Filter by SSP: </label><select name="ssp_id[]" id="ssp" ..
I am using VUE JS in Laravel and want to use this package of block editor, I have added import statement import Editor from ‘vue-editor-js’ but after running npm run dev command it shows error Module not found: Error: Can’t resolve ‘vue-editor-js’, also the package is there in node_module folder. Please help me out. Please ..
I have a problem in my address form when I include may address create-form in this modals it the field cities ,provinces and zip codes autocomplete didn’t work I have check the networks and it is working in the background but it doesn’t show in the fields. Sourc..
so I have a table with 2 columns and I got search functionality from tutorial but it does not function on the table that I made. the search function works in real-time, as soon as user start inputting it displays results that are similar until the input matches exactly a single data. it worked when ..
I am using Vue Js within my Laravel project where I use it to make a POST call. It works fine however when handling the promise I am having the following issues: axios.post(‘/customer/update’,this.customer) .then(response =>( //this.customer = response.data.customer //if this line is uncommented, the scripts falls over this.error.text = response.data.message )).then(response =>( this.error.show = true ..
I used Pusher api for Facebook like Notificatios, but everytime I reload the page, the notifications vanish. Here is my Pusher Script <script> // Enable pusher logging – don’t include this in production Pusher.logToConsole = true; var count = 0; var i =0; var pusher = new Pusher(‘be850f6784915a1d43b8’, { cluster: ‘ap2’ }); var channel = ..
Why is my select field’s text partly invisible and not fully shown as same as the other fields I made? https://i.stack.imgur.com/tbfqm.png I’m trying to make the text clear and not partly invisible. I tried to increase the height of that field and it worked, the text was fully visible, but I don’t want that solution. ..

I’m trying to send data to controller using ajax and I’m getting The POST method is not supported for this route. Supported methods: GET, HEAD. Can someone please tell me what am I doing wrong? In web.php Route::post(‘/fb’, ‘[email protected]’)->name(‘fb’); HTML: <form method="POST" id="formfb" enctype="multipart/form-data" data-route="{{ route(‘fb’) }}"> <input type="hidden" name="_token" value="{{ csrf_token() }}"> <button id="fbbutton" ..
I am creating a crud through ajax and this is an edit function, if i open modal and make some change and submit it it works fine the first time, if i submit the form a second time it edits both records the current and the last one too, meaning firing twice, it fires thrice ..

Hello i’m stuck to get the data from database through axios using vue js. In vue js developer tools i can get the data from my database like this : But when i looping it in v-for like this : <template> <div class="flex flex-col items-center py-4"> <NewPost></NewPost> <Post v-for="(post,i) in posts.data" :post="post" :key="i"/> </div> </template> ..
I have this js code: var my_elem = document.querySelector("[action=’/cart/add’]"); but I need to make it a string, so I can use it as a string variable. How I can do that? I already tried: ‘var my_elem = document.querySelector("[action=’/cart/add’]");’ but I got an error: syntax error, unexpected ‘"’) === true) {‘ (T_CONSTANT_ENCAPSED_STRING) Sourc..

I am working on the filter part in search page but the issue is In the main search page all the result looped from the controller, and Now I am using jquery for the filter process, but things are confusing. How to do this in a right way? So here is the process : Step ..
Hey guys i work with laravel and im trying to change the default large size pizza price to small price when click on dropdown item. Ive tried something but couldnt figure it out. Html code: @foreach($product as $p) <div class="col-lg-3 text-center portfolio-item {{$p->category_id}} "> <div class="card bg-transparent " style="width: 14rem;"> <img class="card-img-top" src="{{asset(‘front/’)}}/assets/img/1.png" alt="Card image ..
In my web application, there are two roles Customers (who visit all pages except managing/admin part) Admin/Manager (who manage products, sells, store etc) So their front end designs are different and js/css as well. When url is http://127.0.0.1 it goes to Route::get(‘/{path?}’,function(){ return view(‘app’); }); where I added the link of css js links to ..