Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Sep 2009
    Posts
    36
    Thanks
    4
    Thanked 0 Times in 0 Posts

    setInterval to add message?

    So basically what I'm trying to do here is use javascript and setinterval to create a facebook message with messages created in an array in the javascript so it's just a matter of iterating over the array and outputting each 'message' in the array. I want to also increase the height of the message box as well, so it stays within the light gray border.

    I've tried a different setInterval methods, but it just isn't working for me...

    Here's what I've got; http://blockis.com/jq/

    Here's jsfiddle to see the code and mess with it: http://jsfiddle.net/gPfbU/ (For some reason, the avatar and the border aren't showing up on the jsfiddle :/)

    Can anyone figure it out?

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    25,567
    Thanks
    78
    Thanked 4,384 Times in 4,349 Posts
    Ummm...neither on your page nor in the jsFiddle code do you have *ANY* JavaScript that even *ATTEMPTS* to do what you claimed you are after.

    I don't see setInterval( ) (just for example) in either spot.
    An optimist sees the glass as half full.
    A pessimist sees the glass as half empty.
    A realist drinks it no matter how much there is.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •