Why is my server printing the javascript to the screen instead of executing it??

Discussion in 'JavaScript' started by GeorgeB., May 31, 2007.

  1. #1
    I have a default set up with valueclick.

    What it does is point to a file on my server to display a banner from another network.

    The PROBLEM is that when I add the default in my Valueclick CP it works!

    But when I the ad shows the default on my site it just prints the code in the .js file where the banner should be. It just writes this:

    var dz=document;
    dz.writeln("<IFRAME FRAMEBORDER=0 MARGINWIDTH=0 MARGINHEIGHT=0 SCROLLING=NO WIDTH=728 HEIGHT=90 SRC=\"http://ad.yieldmanager.com/st?ad_type=iframe&ad_size=728x90&section=201156\"></IFRAME>");
    Code (markup):
    That is exactly what is in the .js file by the way.

    SO what am I doing wrong? I've set permissions to 777 on that file and it still doesn't fix it.
     
    GeorgeB., May 31, 2007 IP
  2. rallokkcaz

    rallokkcaz Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i don't think write1n is in the javascript syntax
     
    rallokkcaz, Jun 3, 2007 IP
  3. zodiac

    zodiac Peon

    Messages:
    2,661
    Likes Received:
    82
    Best Answers:
    0
    Trophy Points:
    0
    #3
    try:
    var dz=document;
    dz.writeln("<SCRIPT TYPE=\"text/javascript\" SRC=\"http://ad.yieldmanager.com/st?ad_type=iframe&ad_size=728x90&section=201156\"><\/script>");
    PHP:
     
    zodiac, Jun 3, 2007 IP
  4. hzmaster

    hzmaster Member

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    #4
    Where you put this code?
    Can you show page where it's not worked?
     
    hzmaster, Jun 4, 2007 IP