don't know if you were that tired but I found that right click inspect element on chrome is immensely helpful when debugging displays that are dynamically generated
hello sir .. I followed your instruction and done perfectly and work great ..but when I hit enter or click a submit button, the text in the input message doesn't disappear automatically.I have asking like what code should we add in it to be remove that text in input message after I hit enter.because it couse spam .hope you get my concern. thank you ..
@tcswidgets First make sure all your JS is correct @ jslint.com -- Then ignore the minor errors (that only apply to JS and not JQuery). Then make sure to have FireBug open and if the ajaxLoad.php isnt appearing in the console to load something is not calling in JS.
hi, i am root user & i have PHPMYADMIN, but when i try to make an SQL query it says that im not the ROOT user... I cant find anything on Google... Could you please help me? ive been looking for an answer for days :/, Best regards from Spain!!!
Im typing exacly what he types in the first 5 mins, but when i load the browser, the tab title is "chat", like its suposed to be, but there is no "body". Its all blank. Someone know why?
great i subscribed. i like long tutorials anything up to 30 mins is great coz i dont have to look around for these extra bits like delete. the only thing i would have liked would be how to update the chat because if another user posts you cant see it lol ill post a link to the pastbin website of the code i make to update the page every 2 or seconds.
I believe what rapblack was trying to say is, this is not instant messaging chat. This is posting without leaving the page, other people posting will not apply until you reload the page. I'm a bit disappointed in this aspect as well.
Hey, great stuff. To make your code less complicated and redundant next time your handling a click event use the awesome live() function from jquery. use $(selector).live('click', function(){}); this will grab dynamic content that is loaded after the DOM was ready and apply any jquery code you want to it.
I have a doubt. What I have to add code so that all users see the chat and can talk comfortably without having to refresh the chat? Because I tried to chat with more than two people, and only looks user posts of yours, and you press F5 to see the other person. Another thing, when you post the same message is in the input. How to fix this so that when it ships, the input is empty? Greetings.
@iTutorialez0com Hi, this would be a lot more detail in explaining. I would use PHP Sessions to keep track of who is logged in and who posted what -- but again that is too much to write out. For the posting, after a successful post inside the $.post() thing, you would put this in there.. $('textarea').empty(); -- but again i cant totally remember where i left off at this video. This was more of an introduction rather than the full blown feature stack of stuff :P
@Timzy921 the foreach is different, it goes through every array item one by one until it ends (The same way as JQuery's $.each() function works too). The while loop is something that only executes while it's true, so although you can have the same effect as a foreach loop, the while loop would be a little more code and a little different, but you can acheive the same output..
i call it partial ajax chat box because the user can only view his own message but in order to view other people message, he need to refresh the browser.u forgot to make ajax polling to continually fetch data from database.or u can use comet /reverse ajax ..nice tuts as always
I work for IE8, Chrome and Firefox only . help
maxhenrry 18 hours ago
don't know if you were that tired but I found that right click inspect element on chrome is immensely helpful when debugging displays that are dynamically generated
harryman11 1 week ago
I worked. But only in chrome .. there will be a way that works in IE8
maxhenrry 2 weeks ago
I have been watching several of your videos and I almost forgot to supscripe to you. Maybe you might to remind people of that :)
Great stuff :) 10++
steverock85 3 weeks ago
hello sir .. I followed your instruction and done perfectly and work great ..but when I hit enter or click a submit button, the text in the input message doesn't disappear automatically.I have asking like what code should we add in it to be remove that text in input message after I hit enter.because it couse spam .hope you get my concern. thank you ..
RompuGuy 1 month ago
worked perfect!
christianplaysguitar 1 month ago
when did your exercise out all right. the add. but the press is ociltan eliminate all data
you can put the download link of your workout. please example
maxhenrry 1 month ago
HELP PLease the popup window at 14:54 is telling me
array
(
)
with nothing inside it... how can I fix this?
TheRandyMajor 1 month ago
@TheRandyMajor Check your sql query.
petterthowsen92 1 month ago
Hmm mine whont load the $("#messages").load('ajaxLoad.php');
But when i access the file, /ajaxLoad.php it comes up with the array. Anything i can do ?
tcswidgets 1 month ago
@tcswidgets First make sure all your JS is correct @ jslint.com -- Then ignore the minor errors (that only apply to JS and not JQuery). Then make sure to have FireBug open and if the ajaxLoad.php isnt appearing in the console to load something is not calling in JS.
JREAMdesign 1 month ago
π Λ
rockumsockum 2 months ago
lol
rockumsockum 2 months ago
hi, i am root user & i have PHPMYADMIN, but when i try to make an SQL query it says that im not the ROOT user... I cant find anything on Google... Could you please help me? ive been looking for an answer for days :/, Best regards from Spain!!!
Dynose 2 months ago
Con este ejemplo de chat es casi igual a cuando uno deja comentario en facebook . es decir se agrega sin recargar la web :)
maxhenrry 2 months ago in playlist Uploaded videos
@maxhenrry english bro.
webmastertool 2 months ago
its half past 4am and im happy to have found this tut. gotta get on this straight away =D
enterOscarMike 2 months ago
if someone else adds another message will the page show it right away or is it necessary to refresh first?
JoaoAfonsoful 3 months ago
Dude it's 4:58am where I am now and your commentary made me lol do damn much looool
iiM4RKx 3 months ago
@iiM4RKx haha you crazy late night programmers
JREAMdesign 3 months ago
@JREAMdesign Notepad++ too, high five for you! :P
iiM4RKx 3 months ago
@iiM4RKx it's 02:27 where i am. Lol
Kliamframe 3 months ago
what are you doing man? i could not get anything
NAHOMSID 6 months ago
could anybody give me the code of this?
thanks
19hitman97 6 months ago
I LOLd hard at "Oh, they're dynamic. it's not gonna show on the view source. how embarassing" :D You had to be really tired that night... :)
freddyfamous 7 months ago 4
@freddyfamous HAHA that sounds so nerdy when its typed out hahaha
JREAMdesign 7 months ago
Im typing exacly what he types in the first 5 mins, but when i load the browser, the tab title is "chat", like its suposed to be, but there is no "body". Its all blank. Someone know why?
dmurta1 7 months ago
notepad+ high five :)
ZulfadlyAshBurn 7 months ago
great i subscribed. i like long tutorials anything up to 30 mins is great coz i dont have to look around for these extra bits like delete. the only thing i would have liked would be how to update the chat because if another user posts you cant see it lol ill post a link to the pastbin website of the code i make to update the page every 2 or seconds.
0oxcmdhackerxo0 8 months ago
Great Tutorial dude. But can u please continue with this to an extend of a chat like the Facebook or Gmail chat stuff?
richkips2006 8 months ago
never seen a guy that doesn't seem to have a clue what he is doing to produce a great tutorial like this! :D
Vytas238 8 months ago
I believe what rapblack was trying to say is, this is not instant messaging chat. This is posting without leaving the page, other people posting will not apply until you reload the page. I'm a bit disappointed in this aspect as well.
Xylogeist 8 months ago
Thanks for share!! will wait for more!
Lessep922 9 months ago
how did you get your notepad looking like that?
reblerebel 10 months ago
@reblerebel Bespin theme - notepad ++. I'm using Bespin with Courier New font.
KDALove 9 months ago
good thank U
bboyamnat 10 months ago
THIS IS NOT A CHAT FORM FOR NOTHING THAT IS FORM SEND NO RELOAD PAGE U FAIL BR O!
rapblack2 10 months ago
@rapblack2 What are you even saying?
KDALove 9 months ago
@rapblack2 lolwut
SuperOmegaHyperKid 9 months ago
Hey, great stuff. To make your code less complicated and redundant next time your handling a click event use the awesome live() function from jquery. use $(selector).live('click', function(){}); this will grab dynamic content that is loaded after the DOM was ready and apply any jquery code you want to it.
s2xi 1 year ago 5
you are awesome subscribed to you bro !
donofthekuwait 1 year ago
@donofthekuwait thanks lol!
JREAMdesign 1 year ago
I have a doubt. What I have to add code so that all users see the chat and can talk comfortably without having to refresh the chat? Because I tried to chat with more than two people, and only looks user posts of yours, and you press F5 to see the other person. Another thing, when you post the same message is in the input. How to fix this so that when it ships, the input is empty? Greetings.
iTutorialez0com 1 year ago
@iTutorialez0com Hi, this would be a lot more detail in explaining. I would use PHP Sessions to keep track of who is logged in and who posted what -- but again that is too much to write out. For the posting, after a successful post inside the $.post() thing, you would put this in there.. $('textarea').empty(); -- but again i cant totally remember where i left off at this video. This was more of an introduction rather than the full blown feature stack of stuff :P
JREAMdesign 1 year ago
@JREAMdesign could you use an interval that refreshes the load? say if you had 2 people chatting?... great tutorial by the way... good stuff
RazorOdphi 6 months ago
@iTutorialez0com
Hey dude u can use jquery for the auto load here i am to enter the code u can copy it and it will work for u
$("enter the div where you are showing the chats or the while statement").load(enter the page url here );
z060950 8 months ago
awesome tutorial, one quick question thou, is the foreach statement in ajaxload.php equivalent to a while() ?
Timzy921 1 year ago
@Timzy921 the foreach is different, it goes through every array item one by one until it ends (The same way as JQuery's $.each() function works too). The while loop is something that only executes while it's true, so although you can have the same effect as a foreach loop, the while loop would be a little more code and a little different, but you can acheive the same output..
JREAMdesign 1 year ago
@JREAMdesign Oh thanks I didn't know that about the foreach, and nice tutorial :)
Timzy921 1 year ago
Thank you so much for these tutorials. Fantastic work! You're a coding pro :-)
sirchadlington 1 year ago
i call it partial ajax chat box because the user can only view his own message but in order to view other people message, he need to refresh the browser.u forgot to make ajax polling to continually fetch data from database.or u can use comet /reverse ajax ..nice tuts as always
slier81 1 year ago
@slier81 can u use w. jquery??
Hendricksleon 1 year ago
do you apply as a partner?
himankerable 1 year ago
@himankerable nope why?
JREAMdesign 1 year ago
@JREAMdesign because the video is over 10 mins not allowed for non-members
Thewebsitemaster1 1 year ago