Logo Logo en
  • iRidi Pro
    Основные компоненты
    • Приложение i3 Pro
    • iRidi Pro Server
    • iRidi Studio
    • iRidium studio v. 1.3.8 (устаревшая версия)
    Java Script в iRidi
    • Руководство
    • Справочник
    • Примеры
    • JS драйвера
    другие
    • Личный Кабинет
    • iRidium Cloud
    • iRidium Transfer
    • Push-уведомления
    • Лучшая практика
    Лицензирование
    • Лицензирование и передача проекта
    • Оффлайн-лицензирование
    • Активация iRidi Pro Server
  • Продукты
    i3 lite
    • Приложение i3 lite
    • Регистрация и лицензирование
    • Сервер
    • Модули
    KNX Home Server
    • Приложение i3 KNX
    • KNX Home Server
    BUS77 HOME SERVER
    • Приложения Bus77 Home и Bus77 Lite
    • Bus77 Home Server
    Решения
    • BYOD - решение для гостиниц
    • Портал жителя - решение для МКД
    iRidi SCADA
    • iRidi SCADA
  • Bus77
    НАСТРОЙКА BUS77
    • Основы Bus77
    • Приложения Bus77 Home и Bus77 Lite
    • Работа с драйвером Bus77 в iRidi Studio
    • Настройка шины Bus77 в iRidi Studio
    ПРОТОКОЛ BUS77
    • Характеристики CAN (Bus77)
    • Описание протокола
    • Исходники на GitHub
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
  • Поддерживаемое оборудование
    Драйверы
    • Список драйверов
    • ProAV драйвера
    • AV & Custom Systems
    • JS драйвера
    • Сторонние драйвера и фриланс
    Протоколы и интерфейсы
    • Голосовое управление
    • 1-Wire
    • BACnet IP
    • Bus77
    • KNX
    • KNX IP BAOS
    • Weinzierl kBerry
    • Microsoft Exchange
    • Modbus
    • MQTT
    • NFC
    • ODBC
    • Onvif
    • SIP
    • SNMP
    • Wake On Lan
    • Z-Wave
    • ZigBee
    Производители
    • AMX
    • AVCiT
    • Beckhoff ADS
    • Biamp Tesira
    • Bluesound
    • Casambi
    • BSS Harman
    • Clipsal
    • ControlArt 7Port
    • Crestron
    • DigiBird
    • Domintell
    • Duotecno
    • EIDE
    • EPSNET
    • Global Cache
    • HDL Buspro
    • Helvar
    • IEAST
    • INELS BUS
    • INELS Wireless
    • Intesis
    • Kleger
    • Kramer VIA
    • Kramer 3000
    • Larnitech
    • Legrand Netatmo
    • LG TV
    • Lutron
    • Lutron Homeworks QS
    • MyHome
    • Nest
    • Novastar
    • Panasоnic PTZ
    • Philips Dynalite
    • PJLink
    • Satel
    • SamsungTV
    • Sonos
    • Somfy
    • SpinetiX
    • Televic Conference
    • TIS
    • Tion
    • URRI
    • Velbus
    • Velocio
    • Vinteo
    • WyreStorm
    • WiiM
    • Xicato
    • Yamaha
    • ZONT
    • Z-Wave.me
    Протестированное оборудование
    • Панель HDL S57
    • Панель HDL S10
    • SIP-домофон
    • Akuvox
    • Arlight
    • Divus
    • QBic TD-1050 PRO
    • QBic TD-1060 Slim
    • QBic TD-1070
    • Sigur
    • Uni-Ubi
    • Velocio
  • Оборудование iRidi

    Серверы
    • HS Сервер
    • ProAV Control Processor Basic
    • ProAV Control Processor Advanced
    • Спецификация контроллеров UMC
    • Настройка контроллера UMC C2
    • Настройка контроллера UMC C3
    • Настройка контроллера HDL IntelliCenter 2 (UMC C4)
    Модули расширения
    • I-PX-RS1
    • I-PX-RS4
    • I-PX-IR3
    KNX
    • KNX Home Server
    • KNX IP Interface
    Панели управления
    • iRidium Panel 7
    • Touch Panel P3
    • Touch Panel P6
    • Touch Panel P8
    • Touch Panel P10
    • Tabletop Touch Panel 10
    • AV Remote Control
    ОБОРУДОВАНИЕ BUS77
    • Каталог Bus77 Pro
    • Каталог Bus77 Lite
    • Differences
iRidium mobile web-site
Содержание
    Инструменты‌
    • Сведения о странице
    • Постоянная ссылка
    • Версия для печати
    • Спецстраницы
    • Связанные правки
    • Ссылки сюда
    Login / Create Account
    Материал из for iRidium developers
    Перейти к: навигация, поиск
    Эта страница является переводом страницы JS Handbook. Перевод выполнен на 100%.

    Other languages:
    English • ‎русский

    Содержание

    • 1 Handbook of JavaScript API
      • 1.1 General API
        • 1.1.1 Pages and Items
        • 1.1.2 Drivers
        • 1.1.3 System
        • 1.1.4 Lists
        • 1.1.5 Gestures
        • 1.1.6 Sounds
        • 1.1.7 Project variables, tokens
        • 1.1.8 Videos, cameras, images
        • 1.1.9 Animation of objects
        • 1.1.10 Push notifications
        • 1.1.11 Trends
        • 1.1.12 Browser
        • 1.1.13 Math operations with large numbers
        • 1.1.14 RSA and AES encryption
      • 1.2 Server API
        • 1.2.1 Server API
        • 1.2.2 DataBases
        • 1.2.3 Working with databases via ODBC
        • 1.2.4 Working with Microsoft Exchange
        • 1.2.5 Routines

    Handbook of JavaScript API

    The handbook presents the list of objects, methods and events of iRidium API.
    It is aimed at developers who are acquainted with JavaScript
    « Guide Examples »

    Updated: 30.11.2021
    Source language: JavaScript
    Language version: 1.5
    Specification: ECMAScript Edition 3
    The JS version that we use is not the latest
    one and it does not support new constructions,
    but its functions are enough for panel projects
    in 99% of all cases. To satisfy the remaining
    one per cent converters of the https://babeljs.io
    type can be used and of course experience
    and developer's skills help.
    Report an error

    General API

    Methods and events of iRidium API can be fully applied in i3 pro. All methods concerning the graphic interface and properties of control panels are not available for use in iRidium Server


    Pages and Items

    Methods

    • IR.CreateItem()
    • IR.DeleteItem()
    • IR.GetPage()
    • IR.GetPopup()
    • IR.ShowPage()
    • IR.ShowPopup()
    • IR.HidePopup()
    • IR.HideGroup()
    • IR.TogglePopup()
    • IR.HideAllPopups()
    • IR.CreateEffect()
    • IR.ShowKeyboard()
    • IR.PasteFromClipboard()
    • IR.GetClipboard()
    • IR.ShowPasteHelper()
    • IR.SelectNextEditBox()
    • IR.GetItem()
      • .GetItem()
      • .CreateItem()
      • .Clone()
      • .GetPopup()
      • .StartActions()
      • .GetState()
      • .CreateState()
      • .ShowPopup()
      • .HidePopup()
      • .TogglePopup()
      • .Show()
      • .Hide()


    Events

    • IR.EVENT_ITEM_PRESS
    • IR.EVENT_ITEM_RELEASE
    • IR.EVENT_ITEM_HOLD
    • IR.EVENT_ITEM_END_HOLD
    • IR.EVENT_ITEM_LOST_FOCUS
    • IR.EVENT_ITEM_CHANGE
    • IR.EVENT_MOUSE_DOWN
    • IR.EVENT_MOUSE_UP
    • IR.EVENT_MOUSE_MOVE
    • IR.EVENT_TOUCH_DOWN
    • IR.EVENT_TOUCH_UP
    • IR.EVENT_TOUCH_MOVE
    • IR.EVENT_ITEM_SHOW
    • IR.EVENT_ITEM_HIDE


    Properties

    • IR
      • IR.ProjectName
      • IR.PagesCount
      • IR.PopupsCount
      • IR.CurrentPage
    • Page
    • Popup
    • Item
    • State

    Drivers

    Methods

    • IR.CreateDevice()
    • IR.GetDevice()
      • .Connect()
      • .Disconnect()
      • .Send()
      • .SendEx()
      • .Set()
      • .SetFeedback()
      • .GetFeedback()
      • .SetParameters()
      • .GetCookies()
      • .SetCookie()
      • .GetLogin()
      • .GetPassword()
      • .AddChannel()
      • .AddTag()
      • .AddRelation()
      • .GetCommandsCount()
      • .GetCommandAtName()
      • .GetCommandAtPos()
      • .GetFeedbacksCount()
      • .GetFeedbackAtName()
      • .GetFeedbackAtPos()
      • .AddEndOfString()
      • .AddEndOfData()
      • .GetChannelURI
      • Conversion of Data
    • IR.GetDevices()
    • IR.IsModuleLicensed()


    Events

    • IR.EVENT_ONLINE
    • IR.EVENT_OFFLINE
    • IR.EVENT_TAG_CHANGE
    • IR.EVENT_RECEIVE_DATA
    • IR.EVENT_RECEIVE_TEXT
    • IR.EVENT_ERROR
    • IR.EVENT_CHANNEL_SET
    • IR.EVENT_TAG_UPDATE_START
    • IR.EVENT_TAG_UPDATE_END


    Other

    • UPnP


    Properties

    • Driver Properties

    System

    Methods

    • IR.ShowSystemMenu()
    • IR.SetEnableSystemMenu()
    • IR.GetEnableSystemMenu()
    • IR.SetProjectSystemMenu()
    • IR.GetEnableProjectMenu()
    • IR.ShowSettingsMenu()
    • IR.SetFullScreen()
    • IR.IsFullScreen()
    • IR.HWID()
    • IR.Exit()
    • IR.ShowKeyboard()
    • IR.Execute()
    • IR.GetSystemInfo()
    • IR.GetCurrentWlanInfo()
    • IR.GetCurrentLocalIPInfo()
    • IR.SetStatusAutoUpdateProjects()
    • IR.Log()
    • IR.SetInterval()
    • IR.SetTimeout()
    • IR.ClearInterval()
    • IR.AddListener()
    • IR.RemoveListener()
    • IR.SetGlobalListener()
    • IR.SubscribeTagChange()
    • IR.UnsubscribeTagChange()
    • IR.CopyToClipboard()
    • IR.PasteFromClipboard()
    • IR.GetClipboard()
    • IR.ShowPasteHelper()
    • IR.GetDesignsCount()
    • IR.DesignSwitch()
    • IR.AndroidSendIR()
    • IR.CalculateCRC()
    • IR.CalculateHash()
    • IR.UrlDecode()
    • IR.HtmlDecode()
    • IR.Base64Encode()
    • IR.Base64Decode()
    • IR.IsModuleLicensed()
    • IR.ValidatePassword()
    • IR.TouchIDStart()
    • IR.OpenPhotoGallery()
    • IR.OpenPhotoCamera()
    • IR.UploadFile()
    • IR.EnableProximity()
    • IR.OnTop()
    • Popen()
    • iDate (object)
    • JSON
      • JSON.Stringify()
      • JSON.Parse()
    • XML
      • new XML
      • .toXMLString()
    • IR.SetPanelBacklight()


    Events

    • IR.EVENT_START
    • IR.EVENT_WORK
    • IR.EVENT_EXIT
    • IR.EVENT_GLOBAL_
      _TAG_CHANGE
    • IR.EVENT_ORIENTATION
    • IR.EVENT_KEYBOARD_SHOW
    • IR.EVENT_RECEIVE_SCHEME
    • IR.EVENT_RECEIVE_
      _PHOTO_FROM_GALLERY
    • IR.EVENT_RECEIVE_
      _PHOTO_FROM_CAMERA
    • IR.ANDROID_BACK_PRESS
    • IR.EVENT_LICENCE_ACCEPT

    Lists

    Methods

    • IR.ITEM_LISTBOX (List) (deprecated methods)
    • IR.ITEM_LISTBOX (List)
      (new methods)
    • IR.ITEM_GOOD_LIST
    • Static List
    • IR.ITEM_PICKER
    • IR.EVENT_PICKER_SCROLL

    Gestures

    Methods

    • IR.AddRecognizer()
    • IR.RemoveRecognizer()


    Events

    • IR.EVENT_GESTURE_BEGIN

    Sounds

    Methods

    • IR.PlaySound()
    • IR.StopSound()
    • IR.StopSlot()
    • IR.StopAllSounds()
    • IR.SetAudioSession()

    Project variables, tokens

    Methods

    • IR.SetVariable()
    • IR.GetVariable()
    • IR.SaveConfig()

    Videos, cameras, images

    Methods

    • IR.CreateImage()
    • IR.GetImage()
    • IR.DeleteImage()
    • IR.Camera()

    Animation of objects

    Methods

    • IR.AddAnimation()
    • IR.RemoveAnimation()
    • IR.StartAllAnimations()
    • IR.StopAllAnimations()
    • .Start()
    • .Stop()
    • .AddItem()
    • .RemoveItem()
    • .AddParameter()
    • .GetParameter()
    • .GetParametersCount()
    • .RemoveParameter()

    Push notifications

    Methods

    • IR.SendPush()


    Events

    • IR.EVENT_RECEIVE_
      _PUSH_NOTIFY

    Trends

    Methods of Linear Trend object

    • .SetDynamic()
    • .GetCurve()
    • .SetCurveTag()


    Properties of Linear Trend object

    • .StartTime
    • .EndTime


    Properties of Curve object

    • .XInterval
    • .XLabelTemplate

    Browser

    Methods

    • .OpenBrowser()
    • .CloseBrowser()


    Events

    • IR.EVENT_BROWSER_
      _PAGE_STARTED
    • IR.EVENT_BROWSER_
      _PAGE_FINISHED
    • IR.EVENT_BROWSER_
      _PAGE_ERROR
    • IR.EVENT_BROWSER_
      _CLOSED


    Math operations with large numbers

    Methods

    • IR.CreateBigIntContext()


    RSA and AES encryption

    Methods

    • IR.CreateEncryption()
      • .Encode()
      • .Decode()
      • .GetPublickKey()

    Server API

    Methods applied in iRidium Server scripts only:

    Server API

    Methods

    • IR.GetServer()


    Events

    • IR.EVENT_ACCEPT
    • IR.EVENT_AUTHORIZE
    • IR.EVENT_RELEASE
    • IR.EVENT_SCHEDULE_
      _EVENT_CHANGE

    DataBases

    Methods

    • System database
      • IR.GetDatabase()
    • User database
      • new SQL()
    • RecordSet object
    • Methods of the SQL object
      • .Open()
      • .Execute()
      • .Request()
      • .Close()
    • Methods of the RecordSet object
      • .GetRows()
      • .GetColumns()
      • .GetColumnName()
      • .GetColumnIndex()
      • .GetColumnType()
      • .GetRowValue()
      • .Free()


    Properties

    • RecordSet

    Working with databases via ODBC

    Methods

    • new ODBC()
    • .Query()

    Working with Microsoft Exchange

    Methods

    • IR.CreateDevice()
    • .GetCalendar()
    • .GetContact()
    • .CreateAppointment()
    • .DeleteItem()
    • .SendMail

    Routines

    • Methods
    • Parameters of Server Routines
    • Events of Server Routines
    • Conditions of Server Routines
    • Actions of Server Routines
    Источник — «https://dev.iridi.com/index.php?title=JS_Handbook/en&oldid=118224»
    Категория:
    • Инструкции
    About us
    Company
    Team
    History
    Philosophy
    Rewards
    Partnership
    Our partner
    Partnership Programs
    Apply for partnership
    products
    iRidium pro
    iRidium lite
    iRidium gate
    iRidium server
    Loads
    iRidium pro
    iRidium lite
    Other version
    Marketing materials
    Support
    On-line courses/Video
    Recommended equipment
    Other version
    iRidium pro
    Documentation
    FAQ
    Forum
    iRidium lite
    Documentation
    Forum
    Projects
    Standart projects
    Smart buildings
    Smart house
    Special solution
    Find a dealer
    News
    Youtube
    Twitter
    VK
    Logo
    contact@iridi.com
    +7 (499) 322-73-29

    Privacy policy