Twitter JS Validation

  • # August 9, 2009 at 1:11 pm

    is there anything wrong with this code? When i validate my site this code is the only thing with errors…

    Code:

    Note – the code does work as its meant to.

    Many Thanks
    Chris

    # August 10, 2009 at 12:08 am
    Code:
    < !DOCTYPE html>




    I just ran this.. works fine… basicly the same thing but less resource dependent

    Question, Did you call jquery before hand?

    # August 10, 2009 at 2:16 am

    This reply has been reported for inappropriate content.

    "AlCapone" wrote:
    is there anything wrong with this code? When i validate my site this code is the only thing with errors…

    Code:
    $(function(){
    $.getJSON(‘http://www.twitter.com/status/user_timeline/cbullmedia.json?count=10&callback=?’,
    function(data){
    $.each(data, function(index, item){
    $(‘.twitter’).append(‘
    ‘ + item.text + ‘

    ‘);
    });
    });
    });

    Note – the code does work as its meant to.

    Many Thanks
    Chris

    where are you validating the code? HTML validation, CSS validation or jQuery validation?

    # August 15, 2009 at 1:50 pm

    It was on the w3schools html validation, i didnt think that it didnt validate becuse it was jquery. Is there a way around this?

    # August 15, 2009 at 1:59 pm

    This reply has been reported for inappropriate content.

    What error is the validator showing?
    I generally put all my javascript in its own file, but I don’t recall ever getting an error for anything I have put in the document head, so long as it’s wrapped in script tags.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed