This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Install & configuration » does {literal} work?
expandshrink

does {literal} work?

does {literal} work?

Wednesday 08 January 2003 6:33:38 am - 1 reply

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?

Wednesday 08 January 2003 11: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.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from