0 Replies Latest reply on Feb 29, 2012 3:47 AM by azizkhani

    comunicate with GWT console  rest by JQuery  problem

    azizkhani

      i want to comunicate with gwt by jquery

      like this

      <script type="text/javascript">

              var restUrl="http://localhost:8080/gwt-console-server/rs";

              function loginJBPM(userName,passWord){

                  $.ajax({

                          type:"POST",

                          url    :restUrl+"/process/definitions/j_security_check",

                          data:"j_username="+userName+"&j_password="+passWord,

                          success:function(res){alert("azizkhani");},

                          error:function(msg){alert("erro")}

                    });

              }

              function listProccess()

              {

                   /*$.getJSON(restUrl+"/process/definitions", function (res) {

                          alert(res);

                   });*/

                   $.ajax({

                          type:"GET",

                          url    :restUrl+"/process/definitions",

                          contentType:"application/json;",

                          dataType:"json",

                          success:function(res){alert(res);},

                          error:function(msg){alert(msg.responseText)}

                      });   

              }

          </script>

          <input type="button" value="login" onclick="loginJBPM('krisv','krisv');"/>

          <input type="button" value="listProccess" onclick="listProccess();"/>

       

      when i type http://localhost:8080/gwt-console-server/rs/process/definitions the gwt response true

      but when i use top samples dontt show plz help mee