0 Replies Latest reply on May 27, 2016 4:53 AM by elie matta

    Rho::AsyncHttp.post

    elie matta

      hello guys,

       

      im facing a problem nad i wish u can help me.

       

      im calling a method getServerResult(url,theParams,call_back, call_back_controler, forAjax=nil)

       

      this method do the ajax call using  Rho::AsyncHttp.post

       

      the code is attached.

       

      im just trying to open an erb file (financialCalculator.rb) and fill some drop down using ajax call on load.

       

      controller.rb comporte the calling of the method

      getServerResult comporte the definition of the method

      Process_result is a function that catch the body and put the data into a session variable where the problem occure:(

       

      the  $jsonResSession = @params['body'] return " " which cause a problem (capture.png)

       

      can u please help me