Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 9 of 9
  1. #1
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default XHTML strict validation

    I'm using the twitter API to display my last tweet from twitter. This includes having to use two script tags to include two pieces of javascript. These won't validate as they are obviously invalid. Is there anyway to stop these tags from being validated?

    Here are the tags I have to use, due to the twitter API:
    Code:
    <script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
    <script type="text/javascript" src="http://twitter.com/statuses/user_timeline/TomSpit.json?callback=twitterCallback2&count=1"></script>
    Thanks in advance. Tom.
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  2. #2
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:


  3. #3
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Use the HTML ignore tags.
    Chippiewill.


  4. #4
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    I'd prefer to stay on strict, if possible.
    @00chips - It doesn't work with the <!-- --> tags wrapped around it?
    Last edited by Jahova; 13-09-2009 at 01:56 PM.
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  5. #5
    Join Date
    Sep 2007
    Posts
    56
    Tokens
    0

    Default

    Why do you care if its valid lol.

    Edited by Jamesy (Forum Moderator): Please do not post pointlessly adding nothing constructive to the thread
    Last edited by Jamesy; 13-09-2009 at 02:45 PM.

  6. #6
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    I found out how else I could have done the same thing, using PHP rather than the API and it is working just as good while being valid. Thread unofficially closed.
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  7. #7
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    Quote Originally Posted by TomSpit View Post
    I'd prefer to stay on strict, if possible.
    @00chips - It doesn't work with the <!-- --> tags wrapped around it?
    It's javascript not HTML
    Chippiewill.


  8. #8
    Join Date
    Apr 2009
    Location
    United Kingdom
    Posts
    1,111
    Tokens
    100

    Latest Awards:


  9. #9
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    I'm just using the validator strict thing. Also, this is just a test to improve my coding and seeing if parts that I couldn't get to be strict in the past I can now re-code to become valid.

    That is all. Tom.
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


Posting Permissions

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