JS Chat App Using JQuery & PHP (AJAX)

preview_player
Показать описание
How to create JS Online Chat Application with PHP MYSQL Backend. Send js message via ajax, refresh online message without a socket. Create Ajax Chat Application with Jquery Whatsapp Design.

Рекомендации по теме
Комментарии
Автор

Amazing, exactly what I need to test and experiment with is as php&jsript beginner. Thanks.

Автор

holy moly this dude is a coding monster. That was so fast and fluid. In 5 languages no less!

MattCurney
Автор

*VALEU AMIGO, VOCÊ ME SALVOU. SÓ PRECISAVA DEIXAR O SCROLL AUTOMÁTICO E VOCÊ MOSTROU. GRATIDÕES DE UM BRASILEIRO.*

gefranviana
Автор

Looks awesome, however makes me worried about performance: wouldn't such a dense request attack kill the server? (I'm very much an amateur, so might be completely irrelevant question :) Thanks a lot!

kseniabreitenmoser
Автор

Thanks!!! this is a great tutorial :) You are an amazing developer. I have a question: How do I make that the scroll animation works only if the user is at the bottom of the chat? To avoid annoying scrolls while reading earlier messages?

guillermoesquivel
Автор

Great tutorial.. but i have a question if i want to insert the date in the middle of the chat, the date of the discussion do you know how can i do that?

savannahcharles
Автор

Great work !! Much appreciated!:)for upload 👌btw . What is your full playlist ? On background in video?

michaeld
Автор

Hey I did everything the same, but the text is not getting saved in the database, is it bcoz im using windows?

glassoul_
Автор

شكرا لك .. لقد تعبت وبحثت كتيرا عن هذا 🌹

mohammedalamin
Автор

i am trying to do exactly the same code with you, but unfortunately the css and the `return '<div it's not working.. i don't have mac like you but i have windows 10.. i don't know what's happening

tel
Автор

hey which versio of php should I use thread or non thread. I'M 15 and a school student

Rudraksha_M
Автор

how to add notifications when a message received ? Is possible and active status (online/offline) of the users?

dennistsoukalas
Автор

Thanks for this awesome video ! I feel sorry for you that after all of this, you got plenty of comments requesting the code while they could just watch and copy...
This is my first time using Ajax, but I see a problem using this method : my cpu temperature went from 60°C to 90°C because of XHR looping. I saw that we could maybe use setTimeout instead, wouldn't it be a better compromise for real usage ?


EDIT :
i found out how to set a time interval for data reloading : remove the "load();" line inside load() function and replace the "load()" inside $(document).ready function with ->
setInterval(function () {
load();
}, 500);

replacing 500 with the value that you want of course

alexandrecarvalho
Автор

great tutorial, but i didn't understand why the messages are updated automatically on user 2 when the user 1 sends message .

karimdz
Автор

Buen código, nada complicado de entender y simple. Gracias por compartir.

miguelangelcuapa
Автор

Instead of selecting all the messages every time... You should poll and select the last message only if it has not already been selected. :) O(n) vs O(1) - or just use web sockets and create a room if it hasn't already been created based off of the chat id stored in the db. /:

Alex-wybj
Автор

Hey i like this Video but i have a problem with the sqldatabase. I implementet it like you and it dont works. So mayby there is a problem with a new sql Version or with jquery.

samuelassmann
Автор

XHR socket se tilda si abro la consola, pero si no la abro sigue normal, como puedo limitar las peticiones tan rapidas que hace el socket?

alexdevorigin
Автор

@microcode every time we are fetching complete database results even after refreshing the page... how do we start new chat after refreshing the page without fetching database previous results... PLEASE PLEASE PLEASE respond me.

sufyankhanbest
Автор

why doesn't scrollHeight work when adding to (session_user)?

bootsrongtech
join shbcf.ru