IE7 not showing inserted php

Discussion in 'JavaScript' started by login, Jun 4, 2007.

  1. #1
    Is there a quick fix to this ? I have a site where the menu and adsense ads cant be seen in IE. In Firefox its ok.

    One of the trouble pages has two adsense blocks. When I take away one of them the page shows fine, but when it put two adsense blocks, the page doesnt show any adsense blocks or text. Please help me before I get mad.


    If this is in the wrong forum, where would it fit ?
     
    login, Jun 4, 2007 IP
  2. sarahk

    sarahk iTamer Staff

    Messages:
    28,813
    Likes Received:
    4,535
    Best Answers:
    123
    Trophy Points:
    665
    #2
    By inserted you mean included?

    Care to post a link?
     
    sarahk, Jun 4, 2007 IP
  3. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #3
    Included yes.
    Please check this page in IE7:
    http://www.bestmp3links.com/articles/download-mp3-song.php
    Then check the source code of the same page.

    I just dont understand why the ads are not showing. It seems like its only showing one included element. Either a menu or an adsense ad.
     
    login, Jun 4, 2007 IP
  4. GMROCKS

    GMROCKS Active Member

    Messages:
    648
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    60
    #4
    that's javascript, by the way.

    check your page for other javascripts
     
    GMROCKS, Jun 4, 2007 IP
  5. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Yes, adsense is java script, its a problem with that too.
    Only one element will show on the page. Either a java script (adsense) or a included php element.
     
    login, Jun 4, 2007 IP
  6. sarahk

    sarahk iTamer Staff

    Messages:
    28,813
    Likes Received:
    4,535
    Best Answers:
    123
    Trophy Points:
    665
    #6
    I'd go back to adsense and recopy the code. It looks fine to the untrained eye but there's clearly something wrong. FF is handling the error (and firebug reports nothing) but IE reports an undefined variable that is causing a problem.

    The include is working well - I suspect you've copied wrong...
     
    sarahk, Jun 4, 2007 IP
    login likes this.
  7. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #7
    it's from the ie 7 help. i hope this will help you
     
    trichnosis, Jun 4, 2007 IP
  8. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #8
    There was a <!-- inside the adsense code that preventes both adsense and the php includes to show.
    Funny, I just upgraded to IE7 today so I did not know that adsense was gone. Wonder how long that adsense have been gone, I was actually a bit puzzled on where some of my adsense income had gone :D
    sarahk, its no wonder that you too are on the top of my DP mod top list :) You and Smyrl, top moderators.
     
    login, Jun 4, 2007 IP
  9. matthewk

    matthewk Guest

    Messages:
    265
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #9
    So close, just beat me to it. I just finished checking your page and was about to reply, but thought i would refresh the page to see if anyone else replied first :)
     
    matthewk, Jun 4, 2007 IP
    login likes this.
  10. login

    login Notable Member

    Messages:
    8,849
    Likes Received:
    349
    Best Answers:
    0
    Trophy Points:
    280
    #10
    Green to you matthewk :) Thanks a lot for helping anyway. Did you spot the <!-- ?
     
    login, Jun 4, 2007 IP
  11. matthewk

    matthewk Guest

    Messages:
    265
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #11
    ya, i was gonna get you to check for commented out sections. ive looked through the adsense code in the past(the .js file), and assumed you were either missing an attribute(not likely, looked like they were all there, or accidently commented it out :), but i closed the page, and went to open it again to grab the source and paste it, and it was already fixed ;)
     
    matthewk, Jun 5, 2007 IP