Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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.

I have found the same problem myself.

sometimes one way round this is to access values of form objects where the form object has the value you wanted to enter directly

document.formname.objectname.value

however this might not work for your problem.

  • Author

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>

I believe that the Web Companion recognizes <!-- and --> as comments and doesn't process whatever is between them.

  • Author

thanks guys. worked perfectly.

dspires is right!

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.