1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Page works locally and on JSFiddle, but not on server

Discussion in 'JavaScript' started by 7643sfsag6, Nov 8, 2015.

  1. #1
    Hi All,

    I've been trying to work out why my page works locally and on JSFiddle, but not on server. I am not missing any sources.

    Page Online: http://palacepalace.com/asin/1.html
    jsfiddle: http://jsfiddle.net/postcolonialboy/2qhqrs3u/

    Any ideas??
     
    7643sfsag6, Nov 8, 2015 IP
  2. 7643sfsag6

    7643sfsag6 Member

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    Ok problem solved.

    For some reason my notepad++ was putting all of the code on 1 line.
    FYI to change this: Open up the file in Notepad++, choose Edit -> EOL Conversion -> Windows.

    thanks
     
    7643sfsag6, Nov 8, 2015 IP
  3. Alexstorm

    Alexstorm Greenhorn

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    18
    #3
    Inspector Console shows this page error for the online link:
    SyntaxError: invalid property id 1.html:1:869
    The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol.
     
    Alexstorm, Nov 9, 2015 IP