Ваши комментарии

Hello,

yes, you can do something like this

var MyType = "POST";
var MyUrl = "/html/login";
var MyData = "Password=2007&name=authform&Login=admin";
var MyHeader = {"Content-Type": "application/x-www-form-urlencoded"};

IR.GetDevice("Server REST").SendEx({ 
      Type: MyType,       
      Url:  MyUrl,
      Data: [MyData],
      Headers: MyHeader,       
      cbReceiveText:       function(text, code, headers)    {IR.Log("cbReceiveText "+text+code+headers);},
      cbReceiveData:       function(text, code, headers)    {IR.Log("cbReceiveData "+text+code+headers);},
      cbReceiveCode:       function(code)                   {IR.Log("cbReceiveCode "+code);},
      cbReceiveKey:        function(key,value)              {IR.Log("cbReceiveKey "+key+value);},
      cbReceiveStartBody:  function(stream)                 {IR.Log("cbReceiveStartBody "+stream);},
      cbReceivePartBody:   function(stream)                 {IR.Log("cbReceivePartBody "+stream);},
      cbReceiveEndBody:    function(size)                   {IR.Log("cbReceiveEndBody "+size);}, 
      cbTimeOut:           function()                       {IR.Log("cbTimeOut");},
      cbReceiveStream:     function(stream, code, headers)  {IR.Log("cbReceiveStream "+stream+code+headers);}   
   });
   
   

hello.

Open Popup function here http://dev.iridiummobile.net/GUI_API/en#IR.ShowPopup

Close popup function here http://dev.iridiummobile.net/GUI_API/en#IR.HidePopup


In panel project, you should use EVENT_TAG_CHANGE event for AddListener http://dev.iridiummobile.net/Drivers_API/en#IR.EVENT_TAG_CHANGE 

. in this event you should write script like this

if (name == example)

{

  if (value == "open popup")

  {

      IR.OpenPopup("popup name")

  }

  if (value == "close popup")

  {

      IR.HidePopup("popup name")

  }


}

Hello

OurSlider.Value = FromSlider(OurSlider.Value); <- you can't do this, because slider range is still from 0 to 100. Slider value converted in script and if you write it in slider then it will be an error


about knx feedback. I receive big value from knx and you should convert it via reversed formula Math.round(Math.pow(value, 2)/10000); and set this value to the slider value



Сервис поддержки клиентов работает на платформе UserEcho