root/trunk/website/blog/includes/relatedpostsjs_error.cfm @ 42

Revision 5, 0.6 kB (checked in by DanWilson, 17 years ago)

Initial Commit Of ModelGlue? Website (upgrade to blogcfc 511)

Line 
1var catsErrorArray = new Array(<cfoutput>#listQualify(URL.c, "'")#</cfoutput>);
2var postErrorArray = new Array(<cfoutput>#listQualify(URL.p, "'")#</cfoutput>);
3
4for (var i=0; i<catsErrorArray.length; i++) {
5        for (var j=0; j<field1.options.length; j++) {
6                if (field1.options[j].value == catsErrorArray[i]) {
7                        field1.options[j].selected = true;
8                        break;
9                }
10        }
11}
12doPopulateEntries(0);
13
14for (var i=0; i<postErrorArray.length; i++) {
15        for (var j=0; j<field2.options.length; j++) {
16                if (field2.options[j].value == postErrorArray[i]) {
17                        field2.options[j].selected = true;
18                        break;
19                }
20        }
21}
Note: See TracBrowser for help on using the browser.