I wish this tutorial was in depth and used a more likely scenario. Can't get an onclick button to find a function in the script tag, and moving the function to the site.js file makes the url for the controller action unreachable.
Big big thanks to you brother for providing such great content and tutorial to learn so much 😊. I am very glad to learn this and found it super effective and helpful in my use cases
How do I handle. Net date time convert to JQuery short date. I have been struggling with that any tips? Internet has been no help at all do I send from an ActionResult View Model?
Good video! Just one thing, a lot of video´s in general on youtube about programming, use hardcoded examples. It would be useful to make a video like this with userinput from a REST service. Its much more useful in the real world. Just a thought from a cs student :)
2 роки тому+3
can u show us how to make a multipart/form-data ajax post?
Can anyone explain a bit more on the @await RenderSectionAsync("Scripts", required: false)? So far I just have noticed that without including my scripts in the @section Scripts{}, jquery doesn't work!
Figured it out! Your page is rendering in the _Layout right where the @RenderBody() is placed. This is in the middle of the layout. This means that whatever you have in your page gets inserted here, Including your block. Because it is in the middle, your script block gets inserted BEFORE you declare the use of jquery! The @await RenderSectionAsync("Scripts", required: false) makes it so if you have a section called Scripts, it renderes it AFTER the declaration of Jquery(because you are placing that line of code after the declaration of jquery). Pretty much, your block gets rendered below the because of @await RenderSectionAsync("Scripts", required: false). If you don't use the @section Scripts{}, it gets rendered above , which makes it so your scripts have no idea of what jquery is.
Hi, this example demos absolute minimum information and is NOT a useful example at all. It cannot help a beginner to code it. I think it’s only to advertise your courses ?
Hi there, thanks for your comment. We would love to create another video on that topic if you tell us what we could improve. What is a useful example from your side of view? Greets
🚀C# Progress Academy - Become a senior C# developer: academy.tutorials.eu/p/csharp-progress-academy
I wish this tutorial was in depth and used a more likely scenario. Can't get an onclick button to find a function in the script tag, and moving the function to the site.js file makes the url for the controller action unreachable.
Big big thanks to you brother for providing such great content and tutorial to learn so much 😊. I am very glad to learn this and found it super effective and helpful in my use cases
using ajax to fire off a partial view or view component is about the best thing ive found that isnt blazor server
I am getting error: Object 'error' DOMException: Failed to execute 'open' on 'XMLHttpRequest': '/HOME/GETNAMES' is not a valid HTTP method.
Jannick you are the bomb, just like Oz said excellent, simple and practical, love it 🙂
Doing this when the App is protected with AzureAd resuts in a cors error can you do a video or explain how to manage this?
how do you have jQuery intellisense working?
How do I handle. Net date time convert to JQuery short date. I have been struggling with that any tips? Internet has been no help at all do I send from an ActionResult View Model?
no link to source?
Good video! Just one thing, a lot of video´s in general on youtube about programming, use hardcoded examples. It would be useful to make a video like this with userinput from a REST service. Its much more useful in the real world. Just a thought from a cs student :)
can u show us how to make a multipart/form-data ajax post?
sure :)
Execllent! Simple and parctical. Thank you!
Let's go!
where I can get code for this video?
Can anyone explain a bit more on the @await RenderSectionAsync("Scripts", required: false)? So far I just have noticed that without including my scripts in the @section Scripts{}, jquery doesn't work!
Figured it out! Your page is rendering in the _Layout right where the @RenderBody() is placed. This is in the middle of the layout. This means that whatever you have in your page gets inserted here, Including your block. Because it is in the middle, your script block gets inserted BEFORE you declare the use of jquery! The @await RenderSectionAsync("Scripts", required: false) makes it so if you have a section called Scripts, it renderes it AFTER the declaration of Jquery(because you are placing that line of code after the declaration of jquery).
Pretty much, your block gets rendered below the because of @await RenderSectionAsync("Scripts", required: false). If you don't use the @section Scripts{}, it gets rendered above , which makes it so your scripts have no idea of what jquery is.
Thanks. it is very usefull.
You are welcome
thank you very much for this great video ❤😍
sure thing!
Can you demo crud using AJAX and don't use Html helper . And Controller like this
Public async taskName(){
----------------------
return ok();
}
brill
Hi, this example demos absolute minimum information and is NOT a useful example at all. It cannot help a beginner to code it. I think it’s only to advertise your courses ?
Hi there, thanks for your comment. We would love to create another video on that topic if you tell us what we could improve.
What is a useful example from your side of view?
Greets
jQuery in 2022/2023 is like using a rusty carving knife to do surgery... why??????
Not true, used it many admin like sites. Sure customer facing, id probably agree in most scenarios. Ive used it in so many prototypes.
I hate jQuery.