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:
<?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;


How can I fix it?

Thanks for your help!

1 Attachment

 
leventekorponai replied on at Permalink Best Answer Reply
I just solved it, the problem was my css.

There was a line like this:
div.box_banner * { display: block; }


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.