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 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    120
    Thanks
    22
    Thanked 0 Times in 0 Posts

    Twitter Javascript API

    Hello.

    I am customizing my twitter tweets page for my website. I am trying to get the twitter-fetcher to work on my js. I can change how many tweets show up currently set on one but if have 2 + the can show up in my other boxes.

    View code here http://codepen.io/CarraraWebsiteSolutions/pen/vjKwh

    View full page here.

    http://codepen.io/CarraraWebsiteSolutions/full/vjKwh

  • #2
    Supreme Master coder! Old Pedant's Avatar
    Join Date
    Feb 2009
    Posts
    27,608
    Thanks
    80
    Thanked 4,634 Times in 4,596 Posts
    Just for starters, your HTML is illegal.

    *ALL* of your "twitter boxes" use the SAME ID:
    Code:
    <div id="twitter-box">
    <div id="MyTwitter"></div>
    You can *NOT* use the same ID more than once per HTML page.

    Any code that uses document.getElementById() [and that includes all jQuery code] will *NOT* work properly when you do so. In some browsers, it will use the first occurrence of the id. In others, it will simply cause an error and nothing at all will work.

    Learn to code VALID html and then you can maybe make the JS work, okay?
    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.

  • #3
    Regular Coder
    Join Date
    Jan 2013
    Location
    Australia
    Posts
    120
    Thanks
    22
    Thanked 0 Times in 0 Posts
    Ok Thanks for html advice changed html did not know


  •  

    Tags for this Thread

    Posting Permissions

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