You can wrap the inputs in a form, and get the form element with js . Then you can add an event listener "onsubmit" with event as param. Then you can do event.preventDefault() to prevent default action, which is submitting the form. Then you can do the socket io sending thing. Which means you also have to put the required param in the input box html. Ofc my explanation sux but thats it Great vid btw
I did whatever you said, but it's not working. Probably the problem is with the button click cause when I click it nothing happens and the message field doesn't get cleared. If any solutions you have, then please provide that
personally I forgot the brackets after $('#messages').append($'').text(data) in the js code. This is how it was supposed to be: $('#messages').append($('').text(data)); I recommend looking again over the code, it's often little things that we don't notice
does anyone know how to deploy a flask app that uses web sockets? because I just finished deploying my app watching a deployment tutorial by Tech with Tim, but it seems that the sockets don't work there: 'Cannot obtain socket from WSGI environment.'
Is anyone getting this error: jQuery.Deferred exception: io is not defined @localhost:5000/... A few hours of troubleshooting didn't help. I'm planning go in the street and scream for a few hours, maybe that helps.
You can wrap the inputs in a form, and get the form element with js . Then you can add an event listener "onsubmit" with event as param. Then you can do event.preventDefault() to prevent default action, which is submitting the form. Then you can do the socket io sending thing. Which means you also have to put the required param in the input box html. Ofc my explanation sux but thats it
Great vid btw
"I'm not an html pro, and I'm proud I'm not an html pro" 😂😂😂
😂😂😂😅😅
lol
😅I use chat gpt for html part😅😅😂😂😂😂
I Got Same Haircut Like You Bro 🤘
Hey buddy, awesome video, ran into problem while accessing website on other device. Can you please provide detailed steps ..
Can you please make video about pyscript?
yes please
Great video! Can you please share any tutorial how to put such application to the internet :) ? Thanks!
Hello, please teach how to save messages on a text or database
Neuralnine plz more about making stuff with flask
Have been waiting for dis😁
you need to provide the source code especially with code with complex formatting like the javascript in this video.
Wow, that was amazing and a good explanation. Thanks
Hey there neural, Please make more blockchain development videos, Thanks!
This was very helpful! Thank you so much
I cant install flask_socketio this tutorial does not work
Me too
@@tankieag1117 lol me too
Code?
Pls upload code here
Source code please
wherer is the source code ?
Not working very well when hosted online. I don’t know the reason . Has anybody hosted it online?
Thank you neuraline
Awesome video keep it up
localhost doesn't start properly and button Send doesnt work for me with your code. Do you have any repo where I can check my code?
Had same problem until I found all my mistakes. The like magic it started working.
missing a bracket in - $('#messages').append($('').text(data)); -made it work.
It doesnt work for me too? pls help
Can you make this in django
Super useful!
Pls I'm stuck in the script for text/javascript. Do you need to have a javascript for it to work
yes, the javascript will handle the connection on client side, the browser cannot understand python.
Awesome video keep it up
don't go to his github, there is basically nothing there to help when this doesnt work.
Hi, can you please explain how upload to heroku this app ?
favicon is mistery from flask...
I did whatever you said, but it's not working. Probably the problem is with the button click cause when I click it nothing happens and the message field doesn't get cleared. If any solutions you have, then please provide that
I am facing the same problem. Do u already have a solution?
personally I forgot the brackets after $('#messages').append($'').text(data) in the js code. This is how it was supposed to be:
$('#messages').append($('').text(data));
I recommend looking again over the code, it's often little things that we don't notice
Use #username instead at sending messages
hello sir is it possible to develop one where you can have messages from different people where i can chat with different people not as a
group chat
does anyone know how to deploy a flask app that uses web sockets? because I just finished deploying my app watching a deployment tutorial by Tech with Tim, but it seems that the sockets don't work there:
'Cannot obtain socket from WSGI environment.'
where did you deploy it?
@@muhamadilham3061 nanode
@@muhamadilham3061 linode
make a tutorial about channels module
Sorry, but this didn't help I'm using pycharm community, like you and got an error on line 4 😢
thx for the great work
really interesting
Sir please to make new version of video in Hindi
database ?
Why are you specifically proud about not being an HTML pro?
Hi, Do you know upload to heroku this application ? Thanks.
awesome
Wait did this guy leaked his ip address to us????
I can't send messages
source code plz
Hello!
Nicee♥️🌹
10:05 / 17:15
Is anyone getting this error: jQuery.Deferred exception: io is not defined @localhost:5000/...
A few hours of troubleshooting didn't help. I'm planning go in the street and scream for a few hours, maybe that helps.
Awesome video keep it up
Hello!