Category : jquery

I want to get the student award date and replace the value in the existing input but I write some jquery it is not working place help to fix this issue. I attached my code down. Controller public function show(Request $request) { if($request->studentId!=”) { $html = ""; $StudentCDate = Student::where(‘id’, $request->student_id)->first(); $data = $StudentCDate->stud_completion_date; $html ..

Read more

Sorry I wrote all the writing in the comments. Was attempting to work it out in my head. So some comments might seems strange. <?php /* Git hub code from https://github.com/23/resumable.js/blob/master/samples/Backend%20on%20PHP.md Thanks! */ // A sort of debug tool that is used to check what is currently happening in the code. function _log($str) { $log_str ..

Read more

I have a table that I want to be updated every time a new entry is made to a database, so I refresh the query (devicesAuto.php) every second. I have a load function written in JQuery that works fine on its own: <script> $(‘#refresh’).load(‘devicesAuto.php’); </script> But when I pass it into ‘setInterval()’ it stops working: ..

Read more

How do I add images to dropzone that are already in the database? I pull the picture from the database like this <? $result=mysqli_query($con,"SELECT * FROM images WHERE id_room=’$id_room’"); while ($row=mysqli_fetch_array($result)){ $image=$row[‘name_image’]; } ?> Adding and deleting images <script type="text/javascript"> Dropzone.autoDiscover = false; $(".dropzone").dropzone({ addRemoveLinks: true, removedfile: function(file) { var name = file.name; $.ajax({ type: ..

Read more