复制代码代码如下:
สลับ (objamnyety) {
กรณี 'PD':
ValueUd = obj.id;
id = objname;
var loadVud = userData.load (สอบ, ID);
if (loadVud == null || loadVud == undefined || loadVud == '') {
var tmptgid = obj.id.substro (0, obj.id.indexof ('_'));
qnototald [qidnostr [tmptgid]] ++;
-
หยุดพัก;
กรณี 'Danx':
ValueUd = obj.id;
var objname = obj.name;
var objnametop = objname.substr (0, objname.indexof ('_'));
id = objname;
var loadVud = userData.load (สอบ, ID);
if (loadVud == null || loadVud == undefined || loadVud == '') {
var tmptgid = obj.id.substro (0, obj.id.indexof ('_'));
qnototald [qidnostr [tmptgid]] ++;
-
หยุดพัก;
กรณี 'PP':
ValueUd = obj.id;
var objname = obj.name;
var objnametop = objname.substr (0, objname.indexof ('_'));
id = objname;
var loadVud = userData.load (สอบ, ID);
if (loadVud == null || loadVud == undefined || loadVud == '') {
var tmptgid = obj.id.substro (0, obj.id.indexof ('_'));
qnototald [qidnostr [tmptgid]] ++;
-
หยุดพัก;
กรณี 'ข้อความ':
ValueUd = obj.value;
id = "text_" + obj.id;
var loadVud = userData.load (สอบ, ID);
if (loadVud == null) {
if (valueud == null || valueud == '') {
กลับ;
-
อื่น {
var tmptgid = obj.id.substro (0, obj.id.indexof ('_'));
qnototald [qidnostr [tmptgid]] ++;
-
-
อื่น {
if (valueud == null || valueud == '') {
userdata.remove (สอบ, ID);
ExamansWerkeyStr = removestrithComma (ExamanSwerkeyStr, ID);
userdata.save (Examinfo, "ExamansWerkeystr", ExamansWerkeystr, 1);
var tmptgid = obj.id.substro (0, obj.id.indexof ('_'));
qnototald [qidnostr [tmptgid]]-;
กลับ;
-
-
หยุดพัก;
กรณี 'ช่องทำเครื่องหมาย':
id = "checkbox_" + obj.id.substr (0, obj.id.lastindexof ('_'));
var key = obj.id.substr (0, obj.id.lastindexof ('_'));
key = "checkbox_" + คีย์;
ValueUd = userData.Load (สอบ, คีย์);
var flag = obj.checked;
if (valueud == null) {
ถ้า (ธง) {
id = key;
ValueUd = obj.id;
var tmptgid = obj.id.substro (0, obj.id.indexof ('_'));
qnototald [qidnostr [tmptgid]] ++;
-
-
อื่น {
ถ้า (ธง) {
if (valueud.indexof (obj.id) == -1) {
Valueud + = "," + obj.id
-
-
อื่น {
if (valueud.indexof (obj.id)! = -1) {
if (valueud.indexof (',' + obj.id)! = -1) {
ValueUd = valueud.replace (',' + obj.id, '');
-
อื่น
if (valueud.indexof (obj.id + ',', ')! = -1) {
ValueUd = valueUd.replace (obj.id + ',', '');
-
อื่น {
userdata.remove (สอบ, คีย์);
ExamansWerkeyStr = removestrithComma (ExamanSwerkeyStr, key);
userdata.save (Examinfo, "ExamansWerkeystr", ExamansWerkeystr, 1);
var tmptgid = obj.id.substro (0, obj.id.indexof ('_'));
qnototald [qidnostr [tmptgid]]-;
กลับ;
-
-
-
-
หยุดพัก;
กรณี 'textarea':
ValueUd = obj.value;
id = "textarea_" + obj.id;
var loadVud = userData.load (สอบ, ID);
if (loadVud == null) {
if (valueud == null || valueud == '') {
กลับ;
-
อื่น {
var tmptGid = obj.id.substro (0, obj.id.indexof ('_'));
qnototald [qidnostr [tmptgid]] ++;
-
-
อื่น {
if (valueud == null || valueud == '') {
userdata.remove (สอบ, ID);
ExamansWerkeyStr = removestrithComma (ExamanSwerkeyStr, ID);
userdata.save (Examinfo, "ExamansWerkeystr", ExamansWerkeystr, 1);
var tmptgid = obj.id.substro (0, obj.id.indexof ('_'));
qnototald [qidnostr [tmptgid]]-;
กลับ;
-
-
หยุดพัก;
ค่าเริ่มต้น:
กลับ; -