Author Topic: jquery issue  (Read 1126 times)

Offline Guy

  • Forum addict
  • *
  • Posts: 6,118
jquery issue
« on: 11 September 2012, 19:22 »
hey ho... i thought I would ask on here as some of you know your shizzle when it comes to stuff on the interwebs...

I am trying to place a cookie policy jobbie on my site and I have seen this used effectively on another joomla site so I thought I would use it too...

I am using the files from here: http://cookiecuttr.com/

and this is the code that I have placed in my <head>


Quote
<head>
 
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js"></script>

<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/cookie/jquery.cookie.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/cookie/jquery.cookiecuttr.js"></script>    
    
  <script type="text/javascript">
     $(document).ready(function() {   
       $.cookieCuttr({
         cookieAnalytics: true,
         cookieOverlayEnabled: false,
         cookiePolicyPage: false,
         cookieDeclineButton: false
       });
     });
   </script>

but it isn't working... I think it is because the link to the jquery.cookie.js file is returning a 406 Not Acceptable  :angry:

thing is... I know that file is in that location... so, erm... stumped  :undecided:

have i missed something obvious here?

site is running on Joomla 2.5 CMS.

tia

Offline Jay

  • Forum addict
  • *
  • Posts: 4,416
  • balding fat cvnt
Re: jquery issue
« Reply #1 on: 11 September 2012, 20:47 »
The implementation guide?  :smiley:
https://github.com/weare2ndfloor/cookieCuttr/blob/master/implementation-guide.txt

Other files:
https://github.com/weare2ndfloor/cookieCuttr


Have you read the laws to make sure you need to use the disclaimer / acceptance policy on your site?
Passat B5.5 2.3 V5 170, with all the extras.

Want some online storage? Click here to sign up for a Dropbox account.

But for the purest engine experience, displacement has no replacement. All other methods are simply attempts to artificially recreate the benefits of displacement.

Offline Guy

  • Forum addict
  • *
  • Posts: 6,118
Re: jquery issue
« Reply #2 on: 11 September 2012, 20:58 »
The implementation guide?  :smiley:
https://github.com/weare2ndfloor/cookieCuttr/blob/master/implementation-guide.txt

Other files:
https://github.com/weare2ndfloor/cookieCuttr


Have you read the laws to make sure you need to use the disclaimer / acceptance policy on your site?

I have read the guide and the CSS file is in with the other CSS file links.. doesn't matter where that is placed, it still won't call the query.cookie.js file

so what have I missed?

and I still want the cookie acceptance/disclaimer on my site... its a matter of friggin principle now even if i don't have to use it!  :smiley:

Offline Guy

  • Forum addict
  • *
  • Posts: 6,118
Re: jquery issue
« Reply #3 on: 12 September 2012, 23:08 »
bumpitty bump bump  :grin:

Offline Jay

  • Forum addict
  • *
  • Posts: 4,416
  • balding fat cvnt
Re: jquery issue
« Reply #4 on: 13 September 2012, 21:12 »
I did plan on having a further look today, but the builders with heavy plant equipment across the road from our work stopped that by "not knowing how the man hole caved in" severing our dedicated fibre line and causing all sorts of pain. not long got back home. Tomorrow is the aftermath of a super sh!t day, but I'll try have a look.
Passat B5.5 2.3 V5 170, with all the extras.

Want some online storage? Click here to sign up for a Dropbox account.

But for the purest engine experience, displacement has no replacement. All other methods are simply attempts to artificially recreate the benefits of displacement.