Area javascript print out
Permalink
Hi,
As you can see on the attached picture, there is some problems with my areas, but just in some cases.
I figured out, the text that appears is the generated script by the c5 for the actual area.
I used this code to create the area:
And this is the unwanted, code printed out by C5:
How can I fix it?
Thanks for your help!
As you can see on the attached picture, there is some problems with my areas, but just in some cases.
I figured out, the text that appears is the generated script by the c5 for the actual area.
I used this code to create the area:
<?php $a = new GlobalArea('Bottom Banner'); $a->display($c); ?>
And this is the unwanted, code printed out by C5:
$(function() { var ccm_menuObj191844 = {}; ccm_menuObj191844.type = "BLOCK"; ccm_menuObj191844.arHandle = 'Top Banner'; ccm_menuObj191844.aID = 844; ccm_menuObj191844.bID = 191; ccm_menuObj191844.cID = 164; ccm_menuObj191844.canWrite =true; ccm_menuObj191844.hasEditDialog = true; ccm_menuObj191844.btName = "Advertisement"; ccm_menuObj191844.width = 430; ccm_menuObj191844.height = 500; ccm_menuObj191844.canCopyToScrapbook = true; ccm_menuObj191844.canDesign = true; ccm_menuObj191844.canEditBlockCustomTemplate = true;
Viewing 15 lines of 20 lines. View entire code block.
How can I fix it?
Thanks for your help!
There was a line like this:
So the display block attribute was applied for the script tag as well. I just had to add a new line to the css, which hide the script.