May 30, 200124 yr 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.
May 31, 200124 yr 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.
May 31, 200124 yr 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>
May 31, 200124 yr I believe that the Web Companion recognizes <!-- and --> as comments and doesn't process whatever is between them.
Create an account or sign in to comment