Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted on Oct 29, 2008 10:35
open dhtmlx forum
dataprocessor not sending data

I have the following code for the grid:

<script type="text/javascript">
mygrid = new dhtmlXGridObject('gridbox');
mygrid.setImagePath("../codebase/imgs/");
mygrid.enableAutoWidth(true);
mygrid.enableAutoHeight(true);
mygrid.preventIECaching(true);
myDataProcessor = new dataProcessor("Update.aspx");
myDataProcessor.setUpdateMode("off");
myDataProcessor.enableDataNames(true);
myDataProcessor.setTransactionMode("GET");
myDataProcessor.init(mygrid);
myDataProcessor.setOnAfterUpdate(function(){
if(myDataProcessor.getSyncState()){
mygrid.clearAll(true);
mygrid.loadXML("Get.aspx");
}});
myDataProcessor.enableDebug(true);
</script>

I have a save link on the page with the following code:
<a href="javascript:void(0)" id="save" onclick="myDataProcessor.sendData()">Save</a>

Iam refresing the grid after save. I make changes to the grid and then click save it works for the first time. I make changes again and hit save it works again. After the second attempt the save stops functioning, i can see the data being sent back to the server using the dataprocessor.debug but the code in the update.aspx file is not being hit. What am i doing wrong here??

Answer posted by Support on Oct 29, 2008 10:53
The code looks correct and must work without problems.
The one of possible reasons - server side caching, you are using GET to send data, which can be cached. Please try to use "POST" instead of GET , if it resolves problem - it is caching for sure.