PHP/Javascript error in IE7

Discussion in 'PHP' started by hcshi, Oct 27, 2006.

  1. #1
    I am having problem with all my .php files that contain javascript. In fact, all javacript codes including Adsense scripts and statcounter scripts caused a "blank" screen in IE7. The same files work fine with Firefox 2.0. Is it my server giving such problem or IE7's problem?
     
    hcshi, Oct 27, 2006 IP
  2. rb3m

    rb3m Peon

    Messages:
    192
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If it's happening in both IE7 and FF it's more probably a server side problem, and I think it could be a PHP error. You may be getting a blank page because error reporting is turned off. If you can turn it on in php.ini to see what comes up.
     
    rb3m, Oct 27, 2006 IP
  3. hcshi

    hcshi Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    After a couple hours of troubleshooting, I found the cause of the error. It's the comment line! I was using --!> to end the comment instead of -->. FF ignores the error but IE does not like and display a blank page.
     
    hcshi, Oct 29, 2006 IP