timmy Posted May 30, 2001 Posted May 30, 2001 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.
flexistentialism Posted May 31, 2001 Posted May 31, 2001 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.
timmy Posted May 31, 2001 Author Posted May 31, 2001 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>
dspires Posted May 31, 2001 Posted May 31, 2001 I believe that the Web Companion recognizes <!-- and --> as comments and doesn't process whatever is between them.
Recommended Posts
This topic is 8671 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 accountSign in
Already have an account? Sign in here.
Sign In Now