Jump to content

CDML tags in JAVA


This topic is 8455 days old. Please don't post here. Open a new topic instead.

Recommended Posts

hopefully this is a simple question.

i have CDML tags inside a Javascript function.

[FMP-record], stuff like that.

but when i load this page, it doesn't process the tags, it keeps it as [FMP-record].

are these tags not processed if they are within a JavaScript function?

Thanks,

timmy.

Link to comment
Share on other sites

this is my code:

any suggestions would be highly appreciated. thanks.

<!--

if (document.images) {

categories = new Object();

[FMP-record]

categories.d[FMP-field :Division number] = new Array(

[FMP-InlineAction: -db="model.fp5", UniqueDivAndCat="1", Division name="{field :Division name}", -find]

[FMP-record]

"[FMP-field:categorynames]",

[/FMP-record]

"------------");

[/FMP-InlineAction]

[/FMP-record]

}

function updateMenus(division) {

if (document.images) {

sel = division.selectedIndex;

if (sel == 0) {

[FMP-record]

} else if (sel == [FMP-field :Division number]) {

act = division.d[FMP-field :Division number];

[/FMP-record]

} else {

act = new Array();

}

division.form.categories.length = act.length;

for(i=0;i<act.length;i++)

division.form.categories.options.text = act;

} else {

alert("Your browser does not allow this script to modify the "

+"activities and clothes selection lists. Get a newer browser.");

}

}

// -->

</script>

</head>

<body>

<form>

<select name="division" size=1 onChange="updateMenus(this)">

<option>Choose Season

[FMP-record]

<option>[FMP-field :Division name]

[/FMP-record]

</select><br><br>

<select name="categories" size=1>

<option>

Link to comment
Share on other sites

This topic is 8455 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.