0
success: function(processResultStatus) {
                    //alert(processResultStatus);
                      //$("#moduleContentViewArea").html(processResultStatus.trim());
                    if (processResultStatus == "1") {
                        alert('Requisition Updated Sucessfully!!!');
                    } else
                    {
                        alert('Requisition could not be updated!!!');
                    }

This code updated the requisition but its shows in alert "Requisition could not be updated" please help me to solve this problem i am new in php

Funk Forty Niner
  • 74,450
  • 15
  • 68
  • 141
rock001
  • 5
  • 3
  • 2
    what do you get when you do `console.log(processResultStatus);`? – Sergio May 07 '14 at 03:58
  • this project is php based when i updated the requisition part then it is updated but alert box shown message requisition could not be updated – rock001 May 07 '14 at 04:00
  • 2
    I understand the problem. Could you answer my question above? Do you know what is `console.log()`? – Sergio May 07 '14 at 04:00
  • Have you try to debug 1st? – Se0ng11 May 07 '14 at 04:01
  • nope i havnt any idea about console.log() – rock001 May 07 '14 at 04:01
  • Ok, add that code to your page, press F12 and refresh. That will open developer tools in your browser and you will see the content of processResultStatus there. You might want to read this too: http://stackoverflow.com/questions/4743730/what-is-console-log-and-how-do-i-use-it – Sergio May 07 '14 at 04:03
  • what you get when you do alert(processResultStatus * 1); – Kshitiz May 07 '14 at 04:03
  • when i alert(processResultStatus * 1); its shown me the requisition updated successfully thanx Kshitiz – rock001 May 07 '14 at 04:10
  • Kshitiz would you please tell me why "*" is used in place of "==" – rock001 May 07 '14 at 04:18
  • @rock001, that has nothing to do with the problem. `*` is to multiply. That cannot be the solution to your question. – Sergio May 07 '14 at 04:58
  • @Sergio, then how can i solve this problem i am not getting any idea – rock001 May 07 '14 at 05:30

0 Answers0