Added: 1 year ago
From: JREAMdesign
Views: 22,426
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (56)

Sign In or Sign Up now to post a comment!
  • I work for IE8, Chrome and Firefox only . help

  • 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

  • I worked. But only in chrome .. there will be a way that works in IE8

  • 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++

  • 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 ..

  • worked perfect!

  • 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

  • HELP PLease the popup window at 14:54 is telling me

    array

    (

    )

    with nothing inside it... how can I fix this?

  • @TheRandyMajor Check your sql query.

  • 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 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.

  • π Λ

  • lol

  • 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!!!

  • Con este ejemplo de chat es casi igual a cuando uno deja comentario en facebook . es decir se agrega sin recargar la web :)

  • @maxhenrry english bro.

  • its half past 4am and im happy to have found this tut. gotta get on this straight away =D

  • if someone else adds another message will the page show it right away or is it necessary to refresh first?

  • Dude it's 4:58am where I am now and your commentary made me lol do damn much looool

  • @iiM4RKx haha you crazy late night programmers

  • @JREAMdesign Notepad++ too, high five for you! :P

  • @iiM4RKx it's 02:27 where i am. Lol

  • what are you doing man? i could not get anything

  • could anybody give me the code of this?

    thanks

  • 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 HAHA that sounds so nerdy when its typed out hahaha

  • 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?

  • notepad+ high five :)

  • 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.

  • Great Tutorial dude. But can u please continue with this to an extend of a chat like the Facebook or Gmail chat stuff?

  • never seen a guy that doesn't seem to have a clue what he is doing to produce a great tutorial like this! :D

  • 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.

  • Thanks for share!! will wait for more!

    

  • how did you get your notepad looking like that?

  • @reblerebel Bespin theme - notepad ++. I'm using Bespin with Courier New font.

  • good thank U

  • THIS IS NOT A CHAT FORM FOR NOTHING THAT IS FORM SEND NO RELOAD PAGE U FAIL BR O!

  • @rapblack2 What are you even saying?

  • @rapblack2 lolwut

  • 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.

  • you are awesome subscribed to you bro !

  • @donofthekuwait thanks lol!

  • 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

  • @JREAMdesign could you use an interval that refreshes the load? say if you had 2 people chatting?... great tutorial by the way... good stuff

  • @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 );

  • awesome tutorial, one quick question thou, is the foreach statement in ajaxload.php equivalent to a while() ?

  • @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 Oh thanks I didn't know that about the foreach, and nice tutorial :)

  • Thank you so much for these tutorials. Fantastic work! You're a coding pro :-)

  • 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 can u use w. jquery??

  • do you apply as a partner?

  • @himankerable nope why?

  • @JREAMdesign because the video is over 10 mins not allowed for non-members

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more