VISIT AND LIKE OUR PAGE ON FACEBOOK
TAKE A LOOK AT OUR TWEETS ON TWITTER
SUBSCRIBE TO THE JOOMFREAK RSS FEED
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:2768
  • 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:2768
  • isupport
  • Moderator
  • OFFLINE
  • Karma: 0

Re: Special eu cookies directive script 01 Jan 2019 07:57 #11336

I am not sure but I think following these steps might help you.
  1. Open Run by pressing Windows Key+R.
  2. Now type "Regsvr32 urlmon.dll" and then hit enter.
  3. You will see a message saying "DllRegisterServer in urlmon.dll succeeded," just click OK. You're done.

This might resolve the issue In The Script On This Page.

Reference: www.crunchytricks.com/2015/06/fixed-erro...d-in-the-script.html
Last Edit: 07 Jan 2019 17:48 by Zacharydillard.
  • Page:
  • 1
Time to create page: 1.03 seconds
Saturday 20 July 2019

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.