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 :)
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!
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 !!
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.
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.....
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.
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...
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
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..
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...
Perfect. I've been weeding through Laravel 5.2 / Ajax tutorials for days and just found this simple, straightforward demo. THANKS!!
thanks bro. every damn thing on the internet failed me except this
thank you so much, that exactly what I was in need of !
u saved my day!!! SUPER AWESOME!!!
a mi también me salvo el dia jajaja
Valeu cara! depois de um dia todo quebrando a cabeça com isso, achei a solução no seu video... obrigado! thanks!
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 :)
Thanks, i love you!!!
Thank you. It's really useful tutorial video.
Wonderful tutorial! Thank you!
Any suggestion on how to set "default disabled selected" for the second list?
Thanks Very Use full tutorial
Thanks again..... :)
excellent brother, thank you for your work
very useful, thanks mate!
Awesome!!!
so helpful! thank you sooo much:)
Thanks Dude.You just saved few hours of my work.Cheers
happy.. to help you..
Thank u so much, excellent video.
gracias me funciono correctamente.
Works fine Thanks
Thanks...It works perfect
Awesome
Thank you !
How would I retain my values when I decide to go edit these categories and sub-categories? Becase Im working on something similar.
smooth!
Love you so much... thank you
Thanks a lot master.
Thanks. Helpful
Thank You.. It Was So helpful.....
thank from Chile
Great
Thanks
Than you so much!
what is this laravel version?
Thanks, It is a excellent video. I wish you talk while you writte the example, give explanations.
how to use this in edit view? the chosen category is displayed in the edit page but not the subcategory.. thanks
Thanks
Thank You So Muchhh
thanks a lot
nice video sir it is a helpful
welcome
i have error in doing this
Object not found!
The requested URL was not found on this server.
please help
Thank you, Can you also show us how to edit this item in bootstrap modal
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!
good
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 !!
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.
use of jquery javascript.
but subenu level 2,3,4 5. How
Please admin guide build select option same wordpress.
Thanks a lot.. its really helpful
can u plz tell me
how can i store the value of subcategory in database table ???
aba palo nepal ko :D
such skill !!!
+Lê Dũng Thankyou.
thanks! If i'd called a message like "loading..." before data, how i to do, please?
jquery show() before ajax code and after success hide(). its really easy. google search >>
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.....
how to multiple selection ?
I am getting error in js as subcatObj is null can you please help me ? shall i paste the code ?
me sale este error ayuda por favor 500 (Internal Server Error)
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.
that can be filtered with id with in id. i hope you understand
that can be filtered with id with in id. i hope you understand
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?
Mika Gogo please keep trying. yes every certain interval and data binding is necessary like angular data binding
Which plugins are you using on laravel?
+Marc Novio there is no plugin used on this.
hi my dropdown is not being populated but i can see the result in my console. why is that?
u may be missing small portions
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?
spelling mistake may be
+Design Code Blade Nepal mine problem solved
And if its a case of filter thumbnails products?
a new logic is needed.
thank you!! How would I, with table MANY TO MANY ???
+david Emanuel that will be a new case new logic to consider
But how to save it in database you just add value in database directly
no me funciona, error 500... alguien me puede ayudar por que no funciona con laravel 5.3
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...
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.
Hello, Please let me know how you use the shortcuts for creating form etc?
breevy for windows
what plugin you have used in your sublime
how the code when i want show data/detail form subcategory i choose?
try to develop the logic
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
i get the same error, do you fixed ?
and if you want to edit them how to bring the data?
the same way
Sube el código o escribelo en la caja de comentarios brother
how to display sub category on table not dropdown.
logic the loop
As simple as learn watching, not explicit tutorial needed
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
new version may have new code
use Illuminate\Support\Facades\Input;
include this in the web.php file
10ks
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..
Please help me: errors :500 (Internal Server Error)
error in your laravel code...
thanks. I have fix succefully
How did you fix it ? i'm using 5.3 and getting the same error ?
error in your laravel code . if 500.
Thank you
can you post the link to source code
Mahesh Bohara sorry Mahesh, i dont have source code. it was removed after practising.
+Mahesh Bohara
Get the source code here.
github.com/HashmatWaziri/laravel_dependentAjaxDropDown
you have no idia how this video helped me
Kindly sir make a product sliders using laravel and bootstrap
Each slide has eight product
thats logical and creative part. please try your self the easiest way.
this wont work with laravel 5.2?
similar technique is involved.
in model can i use same as yours? coz in 5.2 is different.
yes do with 5.2 styles
i have an error in category cant find the category in route
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+'');
});
});
});
please share those script... hard to copy from RUclips
It's already been long. I forgot where the code is. Please be patient and copy from the video.
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...
please keep on trying..
thank you for response,, it was already solved.. :)
same problem for me , how did you solve it please ?
same problem for me , how can i solve it please ?
same problem for me , how did you solve it please ? The requested URL /ajax-substat was not found on this server.
Thanks