Index: lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js =================================================================== diff -u -rf393908c737e5401dda3b995bacb6e4c4a5e5a50 -rfa4248fa3e32168af48f370a59d77a91b0e0cb20 --- lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js (.../rsrcresourceitem.js) (revision f393908c737e5401dda3b995bacb6e4c4a5e5a50) +++ lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js (.../rsrcresourceitem.js) (revision fa4248fa3e32168af48f370a59d77a91b0e0cb20) @@ -1,7 +1,7 @@ /* This is Resource Item instrcution area. */ - var instructionTargetDiv = "instructionArea"; + var instructionTargetDiv = "instructionArea"; var itemAttachmentTargetDiv = "itemAttachmentArea"; // Please set these 2 variables in JSP file for using tag reason: // var removeInstructionUrl = ""; @@ -11,16 +11,22 @@ //Element.remove(id); var url= removeInstructionUrl; var reqIDVar = new Date(); - var param = Form.serialize("instructionForm")+"&removeIdx="+idx+"&reqID="+reqIDVar.getTime(); + + var param = $("instructionForm").serialize(true); // Form.serialize('instructionForm'); + // param('instructionItemDesc' + idx) = + param.removeIdx = idx; + param.reqID = reqIDVar.getTime(); + removeInstructionLoading(); var myAjax = new Ajax.Updater( instructionTargetDiv, url, { - method:'get', + method:'post', parameters:param, onComplete:removeInstructionComplete, - evalScripts:true + evalScripts:true, + contentType: 'application/x-www-form-urlencoded; charset=UTF-8' } ); } @@ -35,7 +41,7 @@ itemAttachmentTargetDiv, url, { - method:'get', + method:'post', parameters:param, onComplete:removeItemAttachmentComplete, evalScripts:true @@ -51,10 +57,10 @@ instructionTargetDiv, url, { - method:'get', + method:'post', parameters:param, onComplete:addInstructionComplete, - evalScripts:true + evalScripts:true } ); } Index: lams_tool_survey/web/includes/javascript/surveyitem.js =================================================================== diff -u -rec918a1f6fa717d59f8074f508fe798eb3cbdf41 -rfa4248fa3e32168af48f370a59d77a91b0e0cb20 --- lams_tool_survey/web/includes/javascript/surveyitem.js (.../surveyitem.js) (revision ec918a1f6fa717d59f8074f508fe798eb3cbdf41) +++ lams_tool_survey/web/includes/javascript/surveyitem.js (.../surveyitem.js) (revision fa4248fa3e32168af48f370a59d77a91b0e0cb20) @@ -17,7 +17,7 @@ instructionTargetDiv, url, { - method:'get', + method:'post', parameters:param, onComplete:removeInstructionComplete, evalScripts:true @@ -34,7 +34,7 @@ instructionTargetDiv, url, { - method:'get', + method:'post', parameters:param, onComplete:addInstructionComplete, evalScripts:true