VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
CHECK OUT OUR PAGE ON GOOGLE +
VISIT OUR CHANNEL ON YOUTUBE

Account Details

Change your name, email, password or permanently delete your account. Change settings

We offer several ways you can get support from our experts: Support ForumKnowledgebaseNewsletter

Your Forum Posts

No posts to display.

Welcome, Guest
Username Password: Remember me

Special eu cookies directive script
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Special eu cookies directive script

Special eu cookies directive script 19 May 2015 13:37 #6736

Hi all.
I've a problem adding the script to this template.
The script is called cookiebar.js, www.primebox.co.uk/projects/jquery-cookiebar/
I can create the link to css and to js in the index.php file (located in templates/jf_calla-exteriors), but when i insert the script below nothing appears:

$(document).ready(function(){
$.cookieBar();
});

i put it just before (/body) tag, but also putting in other places it doesn't work.
The link to css and js are:

$doc->addStyleSheet('templates/'.$this->template.'/css/jquery.cookiebar.css');
$doc->addScript($this->baseurl.'/templates/'.$this->template.'/scripts/js/jquery.cookiebar.js', 'text/javascript');

I also have tried to insert the srictp in callaexteriors.js, with a $(document).ready(function(){ but it doesn't work.
Where i am wrong?
Can you help me?
thank you

  • Posts:2
  • tifone
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Special eu cookies directive script 20 May 2015 04:04 #6743

Try to use:

jQuery(document).ready(function(){
jQuery.cookieBar();
});

joomfreak

  • Posts:2140
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Special eu cookies directive script 21 May 2015 14:32 #6755

Thank you for your reply.
It doesn't work, neither with $ neither with jQuery instruction.
How to disable 3rd part cookies present in k2 that come from domain addthis.com and yahoo.com?
thank you

  • Posts:2
  • tifone
  • Fresh Boarder
  • OFFLINE
  • Karma: 0

Re: Special eu cookies directive script 22 Oct 2015 03:53 #7618

Try to insert the script at beginning of callaexteriors.js, I tried and it work.
 
jQuery(document).ready(function(){
jQuery.cookieBar();
});
 


joomfreak

  • Posts:2140
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0
  • Page:
  • 1
Time to create page: 0.55 seconds

joomfreak is not affiliated with or endorsed by the Joomla Project or Open Source Matters.
The Joomla logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.