Forums / Install & configuration / does {literal} work?

does {literal} work?

Author Message

Erik Petersen

Tuesday 07 January 2003 9:33:38 pm

I'm having javascript issues:

{literal}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
header_08_over = newImage(header_08_over_name);
header_09_over = newImage(header_09_over_name);
header_10_over = newImage(header_10_over_name);
header_11_over = newImage(header_11_over_name);
header_12_over = newImage(header_12_over_name);
header_13_over = newImage(header_13_over_name);
header_14_over = newImage(header_14_over_name);
header_15_over = newImage(header_15_over_name);
menubox_01 = newImage(menubox_01_name);
menubox_02 = newImage(menubox_02_name);
menubox_04 = newImage(menubox_04_name);
preloadFlag = true;
}
}
{/literal}
// -->

produces:

var preloadFlag = false;
function preloadImages()
if (document.images) {
header_08_over = newImage(header_08_over_name);
header_09_over = newImage(header_09_over_name);
header_10_over = newImage(header_10_over_name);
header_11_over = newImage(header_11_over_name);
header_12_over = newImage(header_12_over_name);
header_13_over = newImage(header_13_over_name);
header_14_over = newImage(header_14_over_name);
header_15_over = newImage(header_15_over_name);
menubox_01 = newImage(menubox_01_name);
menubox_02 = newImage(menubox_02_name);
menubox_04 = newImage(menubox_04_name);
preloadFlag = true;

}

// -->

Not the missing braces after the function name and at the end. What's up with that?

Jan Borsodi

Wednesday 08 January 2003 2:58:11 am

> I'm having javascript issues:
>
> [..]
> Not the missing braces after the function name and at the
> end. What's up with that?

The literal tag does not work in RC1 due to a bug, it has been fixed and will be present in the next release.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq