laravel, jquery ajax categories and subcategories, select dropdown

Поделиться
HTML-код
  • Опубликовано: 13 апр 2015
  • music by:

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

  • @rob1grie
    @rob1grie 7 лет назад

    Perfect. I've been weeding through Laravel 5.2 / Ajax tutorials for days and just found this simple, straightforward demo. THANKS!!

  • @mohamedathif968
    @mohamedathif968 7 лет назад +3

    thanks bro. every damn thing on the internet failed me except this

  • @SenoraSara
    @SenoraSara 8 лет назад

    thank you so much, that exactly what I was in need of !

  • @faridehab8517
    @faridehab8517 7 лет назад +3

    u saved my day!!! SUPER AWESOME!!!

  • @elinardosilva3812
    @elinardosilva3812 6 лет назад

    Valeu cara! depois de um dia todo quebrando a cabeça com isso, achei a solução no seu video... obrigado! thanks!

  • @okao08
    @okao08 8 лет назад

    Yes it worked perfectly! :) .... Apparantly i called the scripts before the jquery library... thats why i was getting the internal server error... thank you so much :)

  • @CanaldoFeh
    @CanaldoFeh 6 лет назад

    Thanks, i love you!!!

  • @hardikgadhiya6253
    @hardikgadhiya6253 8 лет назад

    Thank you. It's really useful tutorial video.

  • @afujita7468
    @afujita7468 7 лет назад

    Wonderful tutorial! Thank you!
    Any suggestion on how to set "default disabled selected" for the second list?

  • @aahtut
    @aahtut 8 лет назад

    Thanks Very Use full tutorial
    Thanks again..... :)

  • @pabloDiedrich
    @pabloDiedrich 6 лет назад

    excellent brother, thank you for your work

  • @fikri.abdoul
    @fikri.abdoul 7 лет назад

    very useful, thanks mate!

  • @LutfiFebrianto
    @LutfiFebrianto 5 лет назад

    Awesome!!!

  • @nastykeller
    @nastykeller 8 лет назад

    so helpful! thank you sooo much:)

  • @sadeeenadeee4958
    @sadeeenadeee4958 7 лет назад

    Thanks Dude.You just saved few hours of my work.Cheers

  • @RobertoFerreira
    @RobertoFerreira 7 лет назад

    Thank u so much, excellent video.

  • @wilsonchojllucoa3097
    @wilsonchojllucoa3097 6 лет назад +1

    gracias me funciono correctamente.

  • @benonkahumuza2184
    @benonkahumuza2184 6 лет назад +1

    Works fine Thanks

  • @Chiranjeeb01
    @Chiranjeeb01 7 лет назад

    Thanks...It works perfect

  • @abrhambas8827
    @abrhambas8827 8 лет назад +1

    Awesome

  • @UmutYerebakmaz
    @UmutYerebakmaz 7 лет назад +1

    Thank you !

  • @hydrogen3434
    @hydrogen3434 8 лет назад

    How would I retain my values when I decide to go edit these categories and sub-categories? Becase Im working on something similar.

  • @littlemonkey4749
    @littlemonkey4749 8 лет назад

    smooth!

  • @marcellgarciasolis3995
    @marcellgarciasolis3995 8 лет назад

    Love you so much... thank you

  • @khanmrifat
    @khanmrifat 8 лет назад

    Thanks a lot master.

  • @KarjolGT
    @KarjolGT 7 лет назад

    Thanks. Helpful

  • @GithmaInduwara
    @GithmaInduwara 8 лет назад

    Thank You.. It Was So helpful.....

  • @gorilaerp2463
    @gorilaerp2463 7 лет назад

    thank from Chile

  • @adamsmith3271
    @adamsmith3271 8 лет назад

    Great
    Thanks

  • @irwinpalomo7212
    @irwinpalomo7212 7 лет назад

    Than you so much!

  • @reinaldomedina2683
    @reinaldomedina2683 7 лет назад +2

    what is this laravel version?

  • @CubidesH
    @CubidesH 8 лет назад

    Thanks, It is a excellent video. I wish you talk while you writte the example, give explanations.

  • @morynsmelodies
    @morynsmelodies 6 лет назад

    how to use this in edit view? the chosen category is displayed in the edit page but not the subcategory.. thanks

  • @tindev7509
    @tindev7509 6 лет назад +1

    Thanks

  • @adityaoctavian2166
    @adityaoctavian2166 5 лет назад

    Thank You So Muchhh

  • @dsivakumarbtechit
    @dsivakumarbtechit 8 лет назад

    thanks a lot

  • @parasraiyani2023
    @parasraiyani2023 5 лет назад

    nice video sir it is a helpful

  • @omcshan1579
    @omcshan1579 6 лет назад

    i have error in doing this
    Object not found!
    The requested URL was not found on this server.
    please help

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

    Thank you, Can you also show us how to edit this item in bootstrap modal

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

    In Laravel 5.2 Input:: is replaced with Request::
    use Request::
    Add to the top of Controller or any other Class
    use Illuminate\Support\Facades\Request; Thanks!

  • @jalaluddinali6458
    @jalaluddinali6458 7 лет назад

    good

  • @MooNii8
    @MooNii8 7 лет назад

    i have no errors at all not in the console
    but it doesn't work for me the first list appear with categories but the second is always empty
    i cannot find the call for the route in the network tab
    i tried the route by typing it in the link and it work fine it return the json array
    i cannot figure out whats the problem
    can anybody help me !!

  • @luigioctaviano
    @luigioctaviano 7 лет назад

    Hello. How can I make an automatic display of data in the subcategory when a predefined category is displayed in the select box like the ones at 5:28 , without switching the selection just to make it show? Thanks in advance. Sorry if my English is bad.

  • @chengchivasentertainment4966
    @chengchivasentertainment4966 6 лет назад

    but subenu level 2,3,4 5. How
    Please admin guide build select option same wordpress.

  • @shopnochora99
    @shopnochora99 8 лет назад

    Thanks a lot.. its really helpful
    can u plz tell me
    how can i store the value of subcategory in database table ???

  • @ritizkarkee4249
    @ritizkarkee4249 7 лет назад +3

    aba palo nepal ko :D

  • @ledung5220
    @ledung5220 8 лет назад

    such skill !!!

  • @elinardosilva3812
    @elinardosilva3812 6 лет назад

    thanks! If i'd called a message like "loading..." before data, how i to do, please?

    • @CodeTravel
      @CodeTravel  6 лет назад

      jquery show() before ajax code and after success hide(). its really easy. google search >>

  • @jurijs193
    @jurijs193 7 лет назад

    Hello. Please help someone, if I choose one of category and click Save, how can I save the id of selected category in category_id(subcategories table)? I need to create CRUD with categories to sort and load data dynamically.....

  • @zaguetszo
    @zaguetszo 7 лет назад

    how to multiple selection ?

  • @MrShashankTube
    @MrShashankTube 7 лет назад

    I am getting error in js as subcatObj is null can you please help me ? shall i paste the code ?

  • @andresvasquez8284
    @andresvasquez8284 7 лет назад

    me sale este error ayuda por favor 500 (Internal Server Error)

  • @caseydenner1046
    @caseydenner1046 8 лет назад

    How would I do this if both the drop downs were populated with information from the same table?
    For example make and model are both in an equipments table. when the make is selected the model needs to be updated to equipment that are of that make.

    • @CodeTravel
      @CodeTravel  8 лет назад

      that can be filtered with id with in id. i hope you understand

    • @CodeTravel
      @CodeTravel  8 лет назад

      that can be filtered with id with in id. i hope you understand

  • @mikail0008
    @mikail0008 9 лет назад

    IF I want to check if I have new messages, should I send ajax requests to my db every X seconds ? or is there another solution?

    • @CodeTravel
      @CodeTravel  9 лет назад +1

      Mika Gogo please keep trying. yes every certain interval and data binding is necessary like angular data binding

  • @welcometothefamily11
    @welcometothefamily11 8 лет назад

    Which plugins are you using on laravel?

    • @CodeTravel
      @CodeTravel  8 лет назад

      +Marc Novio there is no plugin used on this.

  • @etrass1
    @etrass1 7 лет назад +2

    hi my dropdown is not being populated but i can see the result in my console. why is that?

    • @CodeTravel
      @CodeTravel  7 лет назад +1

      u may be missing small portions

    • @VISHALSHETTY1990
      @VISHALSHETTY1990 7 лет назад +1

      I am facing similar problem, i can see my data in console but my dropdown is populated with Undefined everywhere , I don't know why?

    • @CodeTravel
      @CodeTravel  7 лет назад +1

      spelling mistake may be

    • @VISHALSHETTY1990
      @VISHALSHETTY1990 7 лет назад +1

      +Design Code Blade Nepal mine problem solved

  • @AdrianMorenoGarcia
    @AdrianMorenoGarcia 7 лет назад

    And if its a case of filter thumbnails products?

  • @chillindavid
    @chillindavid 8 лет назад

    thank you!! How would I, with table MANY TO MANY ???

    • @CodeTravel
      @CodeTravel  8 лет назад

      +david Emanuel that will be a new case new logic to consider

  • @haiderahmed9711
    @haiderahmed9711 5 лет назад

    But how to save it in database you just add value in database directly

  • @freidelm
    @freidelm 7 лет назад

    no me funciona, error 500... alguien me puede ayudar por que no funciona con laravel 5.3

  • @farjanaakter1709
    @farjanaakter1709 5 лет назад

    I want to display categories in my front view. For example i have two categories, Men and Women. i Want the front view to display Men and Woman, when clicking on one of them perhaps men, they see only shirts for men.I'm using a isotope layout... Can you please help me...

    • @CodeTravel
      @CodeTravel  5 лет назад

      yes then send the men as parameter and assign the shirts to men category. the query will just get the shirts and u can show them.

  • @khalidkhan5308
    @khalidkhan5308 7 лет назад

    Hello, Please let me know how you use the shortcuts for creating form etc?

  • @andryayiik4895
    @andryayiik4895 5 лет назад

    how the code when i want show data/detail form subcategory i choose?

  • @szabolcsszucs8669
    @szabolcsszucs8669 7 лет назад +1

    Hello. I have a problem,I use laravel 5.3 and I get this error:
    GET localhost/ajax-model?make_id=12 404 (Not Found)
    I use ajax-model instead of subcat. Thanks

  • @joseluiscardenasgarcia81
    @joseluiscardenasgarcia81 5 лет назад

    and if you want to edit them how to bring the data?

  • @carlosferrer3788
    @carlosferrer3788 7 лет назад

    Sube el código o escribelo en la caja de comentarios brother

  • @ajaykumaryadav5747
    @ajaykumaryadav5747 5 лет назад +1

    how to display sub category on table not dropdown.

  • @MultiZoek96
    @MultiZoek96 7 лет назад

    As simple as learn watching, not explicit tutorial needed

  • @luisjorgehiguerote
    @luisjorgehiguerote 7 лет назад

    hi bro im getting this error Class Input Not found im using laravel 5.3
    this line have the problem $cat_id = Input::get('id'); can you help me? please

    • @CodeTravel
      @CodeTravel  7 лет назад

      new version may have new code

    • @TheMetalheadedfreak
      @TheMetalheadedfreak 7 лет назад

      use Illuminate\Support\Facades\Input;
      include this in the web.php file

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

    10ks

  • @arunmg3694
    @arunmg3694 6 лет назад

    Sir Can you please help me to do like this in laravel..
    18.220.18.159/image-collage/gallery_view.php
    please tell me the way..
    get value from form and display content from database in the same page..

  • @khanhlephuoc3679
    @khanhlephuoc3679 7 лет назад +3

    Please help me: errors :500 (Internal Server Error)

    • @CodeTravel
      @CodeTravel  7 лет назад

      error in your laravel code...

    • @khanhlephuoc3679
      @khanhlephuoc3679 7 лет назад

      thanks. I have fix succefully

    • @sachinrai7146
      @sachinrai7146 7 лет назад

      How did you fix it ? i'm using 5.3 and getting the same error ?

    • @CodeTravel
      @CodeTravel  7 лет назад

      error in your laravel code . if 500.

    • @sachinrai7146
      @sachinrai7146 7 лет назад

      Thank you

  • @maheshbohara7
    @maheshbohara7 9 лет назад

    can you post the link to source code

    • @CodeTravel
      @CodeTravel  9 лет назад

      Mahesh Bohara sorry Mahesh, i dont have source code. it was removed after practising.

    • @HashmatWaziriAfghan
      @HashmatWaziriAfghan 8 лет назад

      +Mahesh Bohara
      Get the source code here.
      github.com/HashmatWaziri/laravel_dependentAjaxDropDown

  • @necroarcan
    @necroarcan 8 лет назад

    you have no idia how this video helped me

  • @nabeeltahir6013
    @nabeeltahir6013 5 лет назад +1

    Kindly sir make a product sliders using laravel and bootstrap
    Each slide has eight product

    • @CodeTravel
      @CodeTravel  5 лет назад

      thats logical and creative part. please try your self the easiest way.

  • @johnlauro6498
    @johnlauro6498 8 лет назад

    this wont work with laravel 5.2?

    • @CodeTravel
      @CodeTravel  8 лет назад

      similar technique is involved.

    • @johnlauro6498
      @johnlauro6498 8 лет назад

      in model can i use same as yours? coz in 5.2 is different.

    • @CodeTravel
      @CodeTravel  8 лет назад

      yes do with 5.2 styles

    • @johnlauro6498
      @johnlauro6498 8 лет назад

      i have an error in category cant find the category in route

    • @sathamhussain9469
      @sathamhussain9469 8 лет назад

      below the solution for you...
      Route::get('/ajax-subcat',function(){
      $categories=\App\Category::all();
      $cat_id = Input::get('cat_id');
      $subcategory = Subcategory::where('category_id', '=', $cat_id)
      ->orderBy('name', 'asc')
      ->get();
      return response()->json($subcategory);
      });
      $('#category').on('change',function(e){
      console.log(e);
      var cat_id = e.target.value;
      //ajax
      $.get('/blog/public/ajax-subcat?cat_id=' + cat_id, function(data){
      //success data
      $('#subcategory').empty();
      $.each(data, function(index, subcatObj)
      {
      $('#subcategory').append(''+subcatObj.name+'');
      });
      });
      });

  • @amiirzam
    @amiirzam 4 года назад

    please share those script... hard to copy from RUclips

    • @CodeTravel
      @CodeTravel  4 года назад

      It's already been long. I forgot where the code is. Please be patient and copy from the video.

  • @benybond8714
    @benybond8714 8 лет назад

    hallo, asking. i already try all of this and i have an error,, when i click the categories select dropdown for automobiles and elektronik, error in console say GET localhost/ajax-subcat?cat_id=2 404 (Not Found), or GET localhost/ajax-subcat?cat_id=1 404 (Not Found), and when i click preview it say object not found!.. please tell me how to fix it,, very sory for my bad english...

    • @CodeTravel
      @CodeTravel  8 лет назад

      please keep on trying..

    • @benybond8714
      @benybond8714 8 лет назад +1

      thank you for response,, it was already solved.. :)

    • @brahimwebmaster
      @brahimwebmaster 8 лет назад

      same problem for me , how did you solve it please ?

    • @brahimwebmaster
      @brahimwebmaster 8 лет назад

      same problem for me , how can i solve it please ?

    • @nabilsaadi6523
      @nabilsaadi6523 8 лет назад

      same problem for me , how did you solve it please ? The requested URL /ajax-substat was not found on this server.

  • @sabidbarahona
    @sabidbarahona 8 лет назад

    Thanks