Laravel 8 Tutorial - Update Record Using Ajax

Поделиться
HTML-код
  • Опубликовано: 27 сен 2024
  • In this video I will talk about Update Record Using Ajax.
    TOPIC DISCUSSED:
    Update Record Using Ajax
    Make PUT Request
    Create Bootstrap Modal
    Create Form Modal
    Update Record into Table by jQuery
    Your Queries -
    1.How to update record using ajax in laravel?
    2.How to update record using ajax in laravel 8?
    3.How to do put request by ajax in laravel 8?
    4.How to show updated created record into table using jquery in laravel 8?
    5.What are steps for updating record using ajax in laravel 8?
    FOLLOW SURFSIDE MEDIA:
    / surfsidem
    / mediasurfside
    github.com/sur...
    / surfsidemedia
    #laravel #laravel8 #laravel8x

Комментарии • 54

  • @novocanal7153
    @novocanal7153 3 года назад +1

    Ajax: You need to change the index value and put a space before the td. ' td:nth-child(2)' Note: You change the value child to 1, 2, 3, 4 until you find the field you want to update, in my case it is 2.

  • @Muhammadwaqas-jn2rr
    @Muhammadwaqas-jn2rr 3 года назад +1

    Sir after completing this tutorial record is updated but after that when we add new record the action button is show and when i reload the page then this is showing plz solve my problem

  • @RobiulIslam-dn9mm
    @RobiulIslam-dn9mm 2 года назад

    one big mistake.. u don't describe what the code is for....
    like in id, u used "sid{{}}" ? what is sid here?

  • @atanumarick9280
    @atanumarick9280 3 года назад +2

    if i insert a data every data appending on that td after submitting the add modal but edit button is not coming i have to refresh the page after that edit button is coming how to solve that issue ?

    • @Chitorra98duriduridr
      @Chitorra98duriduridr 2 года назад

      u solve it?

    • @Chitorra98duriduridr
      @Chitorra98duriduridr 2 года назад

      Here is the full code of the project (the branch is AJAX-modal)
      github.com/josefernandoperezgarcia1998/laravel-crud-ajax/tree/ajax-modal

  • @shoulieheinds5528
    @shoulieheinds5528 4 года назад +1

    cool ...... ! best tutorial ever .. (y)

  • @abaimototech1671
    @abaimototech1671 3 года назад

    Hello I have a hard time fetching the select option value. do you sample code?

  • @Onyecode
    @Onyecode 3 года назад

    am using laravel resource and its giving me not found error

  • @bilalsec
    @bilalsec 3 года назад +1

    please bro I want help you , how i can insert one form dynamic to data use laravel

    • @Chitorra98duriduridr
      @Chitorra98duriduridr 2 года назад

      Here is the full code of the project (the branch is AJAX-modal)
      github.com/josefernandoperezgarcia1998/laravel-crud-ajax/tree/ajax-modal

  • @geneartista9714
    @geneartista9714 4 года назад +1

    can you make a tutorial about sending multiple attachments in mail via AJAX

  • @sportsronak
    @sportsronak 4 года назад +1

    Mashallah

  • @alexguti1288
    @alexguti1288 3 года назад +1

    but when a new record is added in the actions column it remains undefined and it has to be updated with F5 there it is just fixed, someone who has found a solution.

  • @aimanrazman
    @aimanrazman 3 года назад

    i want to use yajra with CRUD

  • @AdahzionBlog
    @AdahzionBlog 3 года назад

    cool tut but how about validation from laravel backend. how to do you display it to the user

  • @ytubewiki
    @ytubewiki 3 года назад

    Thanks.

  • @mohammedshabeer9242
    @mohammedshabeer9242 3 года назад

    bro use formdata instead of specifify all value in ajax

  • @JyotiSingh-cy3wg
    @JyotiSingh-cy3wg 2 года назад

    Hello sir, my model is not opening on edit button

    • @Chitorra98duriduridr
      @Chitorra98duriduridr 2 года назад

      Here is the full code of the project (the branch is AJAX-modal)
      github.com/josefernandoperezgarcia1998/laravel-crud-ajax/tree/ajax-modal

  • @fernandolopezvega937
    @fernandolopezvega937 3 года назад

    ia have a problem with this my friend onclick="editStudent({{$student->id}})" -------------Property assignment expected.javascript

  • @tonyrm2027
    @tonyrm2027 3 года назад +1

    My ajax does not refresh automatically !

    • @himanshuprajapati7938
      @himanshuprajapati7938 3 года назад

      You got solution

    • @rahulnath657
      @rahulnath657 3 года назад +3

      ' td:nth-child(1)' replace and add space before td : ' td:nth-child(1)'

    • @huzaifajaliawala1904
      @huzaifajaliawala1904 3 года назад

      @@rahulnath657 thx alot you saved my time

    • @novocanal7153
      @novocanal7153 3 года назад

      You need to change the index value and put a space before the td. ' td:nth-child(2)' Note: You change the value to 1, 2, 3, 4 until you find the field you want to update, in my case it is 2.

    • @novocanal7153
      @novocanal7153 3 года назад

      @@rahulnath657 THanks: You need to change the index value and put a space before the td. ' td:nth-child(2)' Note: You change the value to 1, 2, 3, 4 until you find the field you want to update, in my case it is 2.

  • @ashutoshmehere5915
    @ashutoshmehere5915 3 года назад

    sir how to give message

  • @mustafayosoufi3956
    @mustafayosoufi3956 3 года назад

    I Created the Edit button, but it is not working

    • @muhammadusmanali4069
      @muhammadusmanali4069 3 года назад

      Same issue

    • @muhammadusmanali4069
      @muhammadusmanali4069 3 года назад

      route:ma jo slash ha usy katm kro jaha form bna ry o

    • @novocanal7153
      @novocanal7153 3 года назад

      You need to change the index value and put a space before the td. ' td:nth-child(2)' Note: You change the value to 1, 2, 3, 4 until you find the field you want to update, in my case it is 2.

  • @muhammadusmanali4069
    @muhammadusmanali4069 3 года назад

    onclick="editStudent({{$student->id}})" this give an error

    • @SurfsideMedia
      @SurfsideMedia  3 года назад

      Watch this video again and recheck your code.

    • @muhammadusmanali4069
      @muhammadusmanali4069 3 года назад

      Now its done i am passing not correct route

    • @sirimourya2637
      @sirimourya2637 3 года назад

      same issue

    • @sirimourya2637
      @sirimourya2637 3 года назад

      @@muhammadusmanali4069 can you plz share your code?

    • @novocanal7153
      @novocanal7153 3 года назад

      my onclick: onclick="editStudent('{{$student->id}}')"

  • @vupham7725
    @vupham7725 2 года назад +1

    if you add new student, Edit do not exits :v

  • @lochanamanikkage8474
    @lochanamanikkage8474 3 года назад

    Model:108 Uncaught ReferenceError: editcustomer is not defined
    at HTMLAnchorElement.onclick (Model:108) pls sold this error

  • @RobiulIslam-dn9mm
    @RobiulIslam-dn9mm 2 года назад

    one big mistake.. u don't describe what the code is for....
    like in id, u used "sid{{}}" ? what is sid here?

  • @lucifer2099
    @lucifer2099 3 года назад

    Sir my Insert and edit both command is not working in insert and update it show POST PUT (internal server error) please solve my issue sir

  • @saramiriio9744
    @saramiriio9744 3 года назад

    please sir I have this error
    uncaughted reference Error: function not
    defined at HTMLAnchorElement.onclick
    what i must do and event Listener don't work
    what is the issue

    • @Chitorra98duriduridr
      @Chitorra98duriduridr 2 года назад

      Here is the full code of the project (the branch is AJAX-modal)
      github.com/josefernandoperezgarcia1998/laravel-crud-ajax/tree/ajax-modal

  • @novocanal7153
    @novocanal7153 3 года назад

    my onclick: onclick="editStudent('{{$student->id}}')" Is ok

  • @novocanal7153
    @novocanal7153 3 года назад

    Just found the route using a point before /students:
    "$.get('./students/'+id, function(student)"