Categories | Question details Back To List | ||
I would like to give you more details about the way I'm using myDataProcessor.sendData().
I have 2 exam... I would like to give you more details about the way I'm using myDataProcessor.sendData(). I have 2 examples: Example # 1: I cerated the following javascript function which is part of a .js file -> function submiCheckboxes() myDataProcessor = new
dataProcessor("/myaccount/programs/forms/viewClaimFormsService.do?mo=sa");
myDataProcessor.sendData(); In the webpage there is a link pointing to the above function. So first of all I check some checkboxes and then I click the link pointing to submiCheckboxes() function. The result is that no data is sent. However if I change the line of code: from -> myDataProcessor.sendData(); to myDataProcessor.sendData(1); then it submits the first row. I would like to have myDataProcessor.sendData(), without parameters, working as well. This is the code I put in the webpage: <script type="text/javascript"> gridViewForm = new
dhtmlXGridObject('ViewForm'); </script> Example # 2: I created the following javascript function which is part of a .js file. In this example, myDataProcessor.sendData(); - without parameters - works fine ->
function submiCheckboxes()
myDataProcessor.sendData(); <script type="text/javascript"> gridViewForm = new
dhtmlXGridObject('ViewForm');
myDataProcessor = new
dataProcessor("/myaccount/programs/forms/viewClaimFormsService.do?mo=sa"); </script>
Conclusion: I would like to have it working like the example #1 above because I need to have functions like:
function submitCheckboxes() myDataProcessor = new
dataProcessor("/myaccount/programs/forms/viewClaimFormsService.do?mo=sa");
myDataProcessor.sendData();
or
function deleteCheckboxes() myDataProcessor = new
dataProcessor("/myaccount/programs/forms/viewClaimFormsService.do?mo=de");
myDataProcessor.sendData(); So depending on the value assigned to the variable 'mo', I need to do something different and I can't accomplish this using example #2 because this line of code: myDataProcessor = new dataProcessor("/myaccount/programs/forms/viewClaimFormsService.do?mo=sa"); is hardcoded in the webpage. Pls let me know if there is a way to use it according to example #1 or if you have an alternative solution.Answer posted on Mar 14, 2007 14:09 You need to create a new dataProcessor object immediately after grid initialization (as in sample 2) because all changes tracking logic is provided by data processor; in case of sample 1 - you attached dataProcessor in moment, when all changes already done, so it doesn't detect any changes. To change path, which will be called by dataProcessor you can use myDataProcessor.serverProcessor="path?mo=sa"; .... myDataProcessor.serverProcessor="path?mo=de";Answer posted by Stanislav (Support) on Dec 05, 2014 03:43 Having solved the problem mentioned above, you may also look through the possible related problems with scheduler web and ajax upload file progress bar. |