--- loncom/publisher/publisher.html 2001/06/23 18:51:32 1.12
+++ loncom/publisher/publisher.html 2005/03/10 03:50:49 1.40
@@ -1,122 +1,192 @@
LON-CAPA Publishing Frame
-
-
-
-
-
- |
- |
- |
-
- |
-
-
- |
- |
- |
- |
-
-
-
-
+function getproblemtype() {
+ if (parent.LONCAPAToBePublished.document.lonhomework
+ &&
+ parent.LONCAPAToBePublished.document.lonhomework.problemtype) {
+ if (parent.LONCAPAToBePublished.document.lonhomework.problemtype.value) {
+ return parent.LONCAPAToBePublished.document.lonhomework.problemtype.value;
+ }
+ if (parent.LONCAPAToBePublished.document.lonhomework.problemtype.options) {
+ var optionelement;
+ var valueIndex=0;
+ for (var optionIndex=0;
+ optionIndex < parent.LONCAPAToBePublished.document.lonhomework.problemtype.options.length;
+ optionIndex++)
+ {
+ optionElement=parent.LONCAPAToBePublished.document.lonhomework.problemtype.options[optionIndex];
+ if (optionElement.selected) {
+ return optionElement.value;
+ }
+ }
+ }
+ }
+ return 0;
+}
+function getpostdata() {
+ document.printout.postdata.value=frameloc();
+ document.printout.curseed.value=getcurseed();
+ document.printout.problemtype.value=getproblemtype();
+ document.printout.submit();
+}
+//-->
+
+
+
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+