Announcement

Collapse
No announcement yet.

saveReferrer(); - Do I need it?

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

    saveReferrer(); - Do I need it?

    Can anyone tell me what this new code to the v8 layouts does and if I need it?

    Code:
      <script language="javascript" type="text/javascript">
          <!-- 
          saveReferrer();
          // -->
       </script>
    Cheers

    David
    Located in Edinburgh UK

    http://twitter.com/mcfinster

    #2
    Hi David,

    I wouldn't delete it, saveReferrer() stores the current URL in a cookie. This cookie is used to get round the NAV blocking of HTTP_REFERRER.

    Kind Regards
    Nadeem Rasool
    SellerDeck Development

    Comment


      #3
      Thanks Nadeem, just wanted to double check what it was used for. Will leave it where it is!
      Cheers

      David
      Located in Edinburgh UK

      http://twitter.com/mcfinster

      Comment


        #4
        In my site I've noticed the savereferrer line generates an error in IE8:

        Message: Object expected
        Line: 3
        Char: 1
        Code: 0
        URI: http://www.slotcarcentre.co.uk/

        Seems OK in Firefox though, any ideas?
        Martin
        Modelmotorracing.com : Web services : Twitter

        Comment


          #5
          All actinic sites have it, so the script is not the problem, i suspect someone has been playing around in the head area of your site. I can see that the html declaration has been changed for starters, that's certainly not going to help. Probably best you get the actinic content in that area back to standard and then try it. Use the compare facility or compare against another template in the design library.

          Comment


            #6
            I've been through and made a few adjustments in the header, compared it to the top of one of Lee's sites and am not seeing anything immediately obvious. The Javascript error is actually highlighted at the top of the design panel in Actinic, and if I remove that cookiecheck from Javascript functions in design/Library, the problem goes away. Odd one.
            Martin
            Modelmotorracing.com : Web services : Twitter

            Comment


              #7
              Martin,

              The error is happening in all browsers.

              It's because the necessary file actiniccore.js and actinicextras.js haven't been uploaded to your server.

              Actinic usually does this automatically. Check that they're in your Site folder.

              If they're missing you may find them in the Actinic program installation / Originals folder.

              Also, I see

              <script language="javascript" type="text/javascript" src="acatalog/actiniccore.js"></script>
              <script language="javascript" type="text/javascript" src="acatalog/actinicextras.js"></script>


              Repeated twice in your site. The second set are the ones to remove.
              Norman - www.drillpine.biz
              Edinburgh, U K / Bitez, Turkey

              Comment


                #8
                Thanks Norman, I moved the site across to new servers a couple of weeks ago so for some reason they didn't get transferred, all seems OK now. Thanks again
                Martin
                Modelmotorracing.com : Web services : Twitter

                Comment

                Working...
                X