You need to be logged in to post in the forum - Log In
An active JCE Pro Subscription is required to post in the forum - Buy a Subscription
Support is currently Offline
Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
From 09:00 To 17:00 Europe/London (BST)
Please post your question in the Forum and we will get back to you as soon as we can.
Mediabox code
Hello,
We have found that when we anable mediabox plug it its generate a extrange code in all site pages:
I have JCE installed un other Joomla sites and this code not appear.
Could you tell me if this code in all site pages is correct behavior?
PS. Pop Up works fine is just that we have checking the pages code and found this.
Thanks in advance.
We have found that when we anable mediabox plug it its generate a extrange code in all site pages:
<script type="text/javascript">
JCEMediaBox.init({popup:{width:"",height:"",legacy:0,lightbox:0,shadowbox:0,resize:1,icons:1,overlay:1,overlayopacity:0.8,overlaycolor:"#000000",fadespeed:500,scalespeed:500,hideobjects:0,scrolling:"fixed",close:2,labels:{'close':'Cerrar','next':'Siguiente','previous':'Anterior','cancel':'Cancelar','numbers':'{$current} de {$total}'},cookie_expiry:"",google_viewer:0,pdfjs:0},tooltip:{className:"tooltip",opacity:0.8,speed:150,position:"br",offsets:{x: 16, y: 16}},base:"/",imgpath:"plugins/system/jcemediabox/img",theme:"standard",themecustom:"",themepath:"plugins/system/jcemediabox/themes"});
jQuery(window).load(function() { var $ = window.jQueryNivoSlider || jQuery; var opts = {"animSpeed":1500,"pauseTime":1500,"controlNav":false,"randomStart":true,"responsive":true}; $("#ais_132").nivoSlider(opts); });
window.setInterval(function(){var r;try{r=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}if(r){r.open("GET","/index.php?option=com_ajax&format=json",true);r.send(null)}},840000);
</script>
I have JCE installed un other Joomla sites and this code not appear.
Could you tell me if this code in all site pages is correct behavior?
PS. Pop Up works fine is just that we have checking the pages code and found this.
Thanks in advance.
So, this both (mediabox and slider) code is correct to show in the page code or there are any issue with loading js or anything else?
The MediaBox code is correct.
It is common practice to load some javascript in the document head in this way.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
JCEMediaBox.init({popup:{width:"",height:"",legacy:0,lightbox:0,shadowbox:0,resize:1,icons:1,overlay:1,overlayopacity:0.8,overlaycolor:"#000000",fadespeed:500,scalespeed:500,hideobjects:0,scrolling:"fixed",close:2,labels:{'close':'Cerrar','next':'Siguiente','previous':'Anterior','cancel':'Cancelar','numbers':'{$current} de {$total}'},cookie_expiry:"",google_viewer:0,pdfjs:0},tooltip:{className:"tooltip",opacity:0.8,speed:150,position:"br",offsets:{x: 16, y: 16}},base:"/",imgpath:"plugins/system/jcemediabox/img",theme:"standard",themecustom:"",themepath:"plugins/system/jcemediabox/themes"});
This is the MediaBox initialisation code.
jQuery(window).load(function() { var $ = window.jQueryNivoSlider || jQuery; var opts = {"animSpeed":1500,"pauseTime":1500,"controlNav":false,"randomStart":true,"responsive":true}; $("#ais_132").nivoSlider(opts); });
This is not Mediabox code, it appears to be related to jQueryNivoSlider.
window.setInterval(function(){var r;try{r=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("Microsoft.XMLHTTP")}catch(e){}if(r){r.open("GET","/index.php?option=com_ajax&format=json",true);r.send(null)}},840000);
This is Joomla code.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
more than a month ago
·
#83477
Ok.
So, this both (mediabox and slider) code is correct to show in the page code or there are any issue with loading js or anything else? (Im not a programmer so that code seems little little weird compared with othe and becouse it is near to the head code)
For example, I have other like you can see at the attached image.
Not shows all code, just loaded.
But media box shows all code.
Is it correct?
Thanks in advance!
So, this both (mediabox and slider) code is correct to show in the page code or there are any issue with loading js or anything else? (Im not a programmer so that code seems little little weird compared with othe and becouse it is near to the head code)
For example, I have other like you can see at the attached image.
Not shows all code, just loaded.
But media box shows all code.
Is it correct?
Thanks in advance!
So, this both (mediabox and slider) code is correct to show in the page code or there are any issue with loading js or anything else?
The MediaBox code is correct.
It is common practice to load some javascript in the document head in this way.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!