Sometimes you can get stumped by the simplest of issues, and its sooo annoying looking for hours and every tut you watch doesn't seem to give what you KNOW is a simple answer to a simple problem. Your basic method just works! Thanks fella!!! Hope the lockdown isnt driving you nuts lol 👍
@dcode-software4 жыл бұрын
No worries mate!! It's going alright mate getting used to it slowly, all the best :)
@stringplayer9994 жыл бұрын
A web dev named Dom? perfect.
@vinosamari4 жыл бұрын
😂😆
@ntantar3 жыл бұрын
😂
@Ab-cj6gl3 жыл бұрын
😂😂😂
@SemyonTishchenko4 жыл бұрын
Thank you very much for this little tutorial. I tried to find a video like this for too long. I wish you good luck, man
@dcode-software4 жыл бұрын
No worries mate, glad you enjoyed it!
@rajpalsingh17364 жыл бұрын
@@dcode-software hello sir i want to appears image on click on button can you help me please
@trytoo51673 жыл бұрын
Anyone else getting 405 error method not allowed? How to fix @dcode
@Dreku223 ай бұрын
exactly what I was looking for, good stuff
@gamenesting55942 жыл бұрын
i liked your video, because you deserve this. what your content in this video is the thing i don't find any where in the web
@thantzinwin72152 жыл бұрын
thank you so much sir , you know you remove one of my difficulties .
@dcode-software2 жыл бұрын
Glad to hear you got it done!
@larskra63872 жыл бұрын
Nice answer to a simple question. Thanks!
@bumbledoge3 жыл бұрын
damn the quality of this video! fkn subscribed !!!!
@dcode-software3 жыл бұрын
Thanks mate
@Models_plus189 ай бұрын
You are the best Boss.
@nagendra90925 жыл бұрын
Thank you, I had a question By taking multiple inputs in FORM like name, age, number, after clicking on submit it will appear on new page with name:xyz, number:123456. with edit option also can we make like this with only using java script. please make a video on this. thank you
@Barnardrab3 жыл бұрын
How do you get FormData working with just JavaScript? I want to code in Node JS. When I pop the new FormData(myForm) in the parameter of a console.log, I get some obscure data that isn't helpful.
@nelsonantonio58702 жыл бұрын
Thank you very much Sir!!!
@abdullahmanafikhi44382 жыл бұрын
thanks a lot , hope you get an enormous success in this field
@athraafaraj83872 жыл бұрын
I have a question, if i wanna to but counter of users submit the course for example, how can i do it? and what can I write to search about this task?
@ajwadmajed35512 жыл бұрын
I followed this video EXACTLY. I get this error and i don't know what to do... Uncaught TypeError: Cannot read properties of null (reading 'addEventListener') ... "MyForm.addEventListener("submit" , (e) => {}); " This line is where the error is ?!
@Stallion45 Жыл бұрын
This works great..., but if I have multiple forms on a page how can I add event listeners to all forms? Say adding a Ajax-form class to all forms I want to add a listener to and then looping through them to add a listener to each one. Sounds simple, but when I try it my forms stop posting on submit.
@LGmediaGlobal2 жыл бұрын
Without the .php and using only JS... I'm still getting page refresh upon submit. No data capture. The getElementById is global scope. I have addEventListener with e.preventDefault(); AND I have e.preventDefault(); on the formHandler as well and page is still blinking.
@charlesbabbage67863 жыл бұрын
Very Helpful. Thank you!
@tarunchelumalla0074 жыл бұрын
Thank you so so much bro 🙏 u helped me a lot bro . Good stuff 👍 keep up
@dcode-software4 жыл бұрын
No worries mate! 😁
@tarunchelumalla0074 жыл бұрын
@@dcode-software though I'm a beginner it matters the most so it's kind a big problem than usually it's situation where I'm gonna quit it 😂 . That's when I saw ur video I resolved in a minute that's makes me more happy 😊 Thank you bro 👍
@athraafaraj83872 жыл бұрын
thank you for your explaining, really amazing
@milofcrsdelije3 жыл бұрын
Hello there, Wy am I getting a TypeError: myForm is null? The code is: const myForm = document.getElementById("myForm"); myForm.addEventListener("submit", (e) => { e.preventDefault(); console.log("Form is submitted"); }); Of course, the form has id myForm in html. I am doing a radio form type, but that souldn't be the problem. Thanks!
@luisavenancio6253 жыл бұрын
Thanks for this video! Super helpful!
@eyalshnitzerful6 жыл бұрын
Great video. Thanks
@prathmeshborse52213 жыл бұрын
Working fine but form data is as it is...the form data on html page should disapper...give solution
@Chetan16jul3 жыл бұрын
We have JS code that fires on our thank you page, that we would like moved to our submit button on our form. so how we can do that
@confidential3033 жыл бұрын
hi, I am looking for building a simple homepage, where I have a simple searchbox for google. how to implement that in a html ? I know basic html and I know how to make a inputbox but how do I redirect the input text into google searchbar? So it has to go essentially to Google.com
@FreeSkypeGenerator12 жыл бұрын
Thanks May i know which theme you are using It's looking good
@monkeydog86813 жыл бұрын
how do you parser that var dump?. I mean when you do an sql querry like the one below and var_dump it while($row = mysqli_fetch_array($result)) { var_dump($row); } one the other page. I use console.log(JSON.parse(this.responseText) ); ^^^ that is an error but when I use log w/o parse it works. console.log(this.responseText) Like how?
@beasta753 жыл бұрын
thank you so my bro that worked fine
@venusirpuram43454 жыл бұрын
which font do you use and theme for the vscode
@IMMWICKED2 жыл бұрын
can you use onSubmit to do the same thing?
@veliea51605 жыл бұрын
console is logging the entire page where i put ajax the request. it doesnt response the form values :(
@Wallabyinertia3 жыл бұрын
Great informative video!
@dcode-software3 жыл бұрын
You're welcome
@chigo_e2 жыл бұрын
Hi, can you edit the title to say PHP instead of Javascript. It's quite misleading...good video nonetheless!
@JunkMailOfficial4 жыл бұрын
For my assignment, I got the error code on the first step, saying it cannot add read property of addEventListener of null... My teacher isn't the greatest at explaining and I feel lost in the course. Do you think you can point me in the right direction to deal with this problem? Thanks
@dcode-software4 жыл бұрын
Whatever you're using to select the element is wrong - whether it's getElementById or querySelector. Or it's because your script is included in the head of file and not at the end of body. It could also be helpful to watch my video on the DOMContentLoaded event.
@JunkMailOfficial4 жыл бұрын
dcode thank you! Will do!
@jatinnehlani16223 жыл бұрын
How to reset the form after submitting it?
@juancarloshuanca23842 жыл бұрын
thanks :)
@moawiaab6 жыл бұрын
Thanks you.! create vedio 👍🎬
@dcode-software6 жыл бұрын
No worries mate
@strifetalk6 жыл бұрын
Dude, this VS Code theme looks amazing. What theme is it?
@salihefee4 жыл бұрын
yea it is very good i want it too
@dcode-software4 жыл бұрын
Unfortunately I uninstalled this theme long ago... sorry guys!
@salihefee4 жыл бұрын
@@dcode-software oof
@salihefee4 жыл бұрын
@@dcode-software but I found an alternative
@ichra7com2 жыл бұрын
i need the actual code please
@lucianobrandao62174 жыл бұрын
Thankss for informations =)))
@leslinks4 жыл бұрын
what if i don't like to use AJAX and instead using normal procedural way in php form submission?? how can i get rid off event.preventDefault() ??
@dcode-software4 жыл бұрын
If you want to do a traditional form submission then you don't need to worry about preventDefault
@leslinks4 жыл бұрын
@@dcode-software Thank You for the response. yeah right but, i've used preventDefault() to stop the form and did the form validation. now the validation is working nicely but the form is not submitting because of preventDefault(). i prefer JS validation instead of php validation. how do i continue to submit the form after the validation. i use php and mysql.
@iloveafrica89803 жыл бұрын
What is google waiting for?
@creativeuk68826 жыл бұрын
Great video. Can you make video on PHP. I am learning something new in all of your videos even though I am an intermediate developer.
@dcode-software6 жыл бұрын
That's great to hear 😁 I have a new series lined up which I'll be releasing soon. After that though I'm definitely down to do some PHP because it is one of the first languages I learnt! Cheers for your support
@shahulya76543 жыл бұрын
Thanks so much❤️
@Rayberk4 жыл бұрын
it doesnt workd can u give the code?
@swapnilmane15993 жыл бұрын
Can u plz tell me which theme and font are you using...I love the theme and the font style...
@dcode-software3 жыл бұрын
Sorry but it's been a while since I've had this theme - I suggest trying GitHub Light though As for the font, it looks to be Office Code Pro D
@swapnilmane15993 жыл бұрын
@@dcode-software thank you...😊😊
@dharunsivakumar75843 жыл бұрын
Can't we do this without login.php?? @dcode Help me out.
@dcode-software3 жыл бұрын
Yes, you can do this with any server-side language or technology. This video is focused on the front-end
@forethiocodingstaff4 жыл бұрын
Please make video how to hide or encrypt JavaScript file
@lunacollacchi87983 жыл бұрын
wasn't this supposed to be the vanilla javascript one?
@dcode-software3 жыл бұрын
This is using vanilla JavaScript
@mongocrazyy38543 жыл бұрын
why not just add the code
@wealthwhiz2703 жыл бұрын
Is This Possible Without Using PHP @dcode please reply ASAP
@dcode-software3 жыл бұрын
Yep - this is purely client side. It doesn't matter what the server-side language is
@ConsulthinkProgrammer3 жыл бұрын
Yes, use apps script
@wealthwhiz2703 жыл бұрын
@@ConsulthinkProgrammer Thanks
@ConsulthinkProgrammer3 жыл бұрын
@@wealthwhiz270 You're welcome. For more reference about HTML Form to Google Sheets use Apps Script kzbin.info/www/bejne/d3izd6asgN-Lo5I
@johnwick41444 жыл бұрын
did anyone get Status Code 405 Method Not Allowed on the line ==> request.send(new FormData(myForm));
@dcode-software4 жыл бұрын
If you are using a server built into your text editor or some other command line tool I recommend you download an actual server instead such as NGINX or Apache/XAMPP
@adolfjamesurian65104 жыл бұрын
Is this includes php language?
@dcode-software4 жыл бұрын
What do you mean?
@adolfjamesurian65104 жыл бұрын
There is login.php
@dcode-software4 жыл бұрын
Yes, this should work with PHP
@adolfjamesurian65104 жыл бұрын
So when i login it wont forget the exact value of when i did on sign up
@thestimup4 жыл бұрын
Only getting this. Cannot POST /login.php 30 lines of code = 3 hours of troubleshooting @ developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest and developer.mozilla.org/en-US/docs/Web/API/FormData and developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/send and developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open