.responseText Glitch?

Discussion in 'JavaScript' started by Imozeb, May 27, 2010.

  1. #1
    I was working on some html on my page (comment tags, javascript, not PHP) and all of a sudden my .responseText in all of my AJAX querys started to return the html of the entire page or of all the javascript around it? Any ideas why this might happen? Please help! My entire site broke and I don't know why!!! I put a small if statement to negate the problem but now my AJAX .responseText querys won't work any more?! It think it may be something to do with html and javascript comment tags...

    Link: http://www.foreverplaying.com/script/allgames.php
     
    Last edited: May 27, 2010
    Imozeb, May 27, 2010 IP
  2. rkstech

    rkstech Active Member

    Messages:
    195
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    73
    #2
    see what is retuned in your response, is that HTML rich content or Plain Text.
     
    rkstech, May 28, 2010 IP
  3. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I do not know, how would I check this?

    Link: http://www.foreverplaying.com/script/allgames.php returns javascript code as plain text.
    and the header login function returns HTML rich content as the entire page??? I don't know why .responseText would contain these texts??? Probablyly something simple, I hope...
     
    Imozeb, May 28, 2010 IP
  4. Imozeb

    Imozeb Peon

    Messages:
    666
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Got it. .htaccess problem. Thanks guys for taking a look.
     
    Imozeb, May 28, 2010 IP