Index: lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js =================================================================== RCS file: /usr/local/cvsroot/lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js,v diff -u -r1.4 -r1.5 --- lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js 1 Oct 2006 22:34:10 -0000 1.4 +++ lams_tool_larsrc/web/includes/javascript/rsrcresourceitem.js 7 Apr 2008 07:26:26 -0000 1.5 @@ -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 =================================================================== RCS file: /usr/local/cvsroot/lams_tool_survey/web/includes/javascript/surveyitem.js,v diff -u -r1.2 -r1.3 --- lams_tool_survey/web/includes/javascript/surveyitem.js 18 Sep 2006 02:14:05 -0000 1.2 +++ lams_tool_survey/web/includes/javascript/surveyitem.js 7 Apr 2008 07:26:26 -0000 1.3 @@ -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