Announcement

Collapse
No announcement yet.

Javascript Error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Javascript Error

    Just noticed a weird Javascript error when looking at the design view. The line number changes depending on which page I look at, but there is only ever one. Where does it refer to? Unfortunately it doesn't tell me where the lines are! Would be great if you could click on it and it would take you to the error. The responsive outer layer does not have that many lines, so it can't be there. Looked in current style sheet also and can't see anything there. Does anyone know?

    Edited to say that searching for "Errors on all pages" shows one (also attached).
    Attached Files
    Kind Regards
    Karen

    Charmed Cards & Crafts

    #2
    Hi Karen,

    It's likely in your header functions / outer layout - if there's javascript in your stylesheet somethings seriously wrong!

    Do a CTRL+F for the word "initialise" - ensure you are searching in code
    Matt. M - SMR Enterprises Ltd.

    Comment


      #3
      Hi Matt,

      Thank you for your reply. The word "Initialise" is nowhere to be found. Apart from Cookie consent script but that seems OK and not on the lines specified.
      Kind Regards
      Karen

      Charmed Cards & Crafts

      Comment


        #4
        Seems it was the cookie script. Obviously trying to initialise it locally without success. No idea what the line numbers referred to, very misleading.
        Kind Regards
        Karen

        Charmed Cards & Crafts

        Comment


          #5
          Put a BlockIf containing IsNotPreviewMode around the Cloudfare cookie stuff to prevent it being loaded on Preview. This will also speed up page previews.
          Norman - www.drillpine.biz
          Edinburgh, U K / Bitez, Turkey

          Comment


            #6
            Thank you Norman, that's perfect
            Kind Regards
            Karen

            Charmed Cards & Crafts

            Comment

            Working...
            X