Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Net

Simple ajax functions

Hierarchy

  • Net

Index

Methods

Methods

Static get

  • get(url: string, callback: function): void
  • Async xhr GET call

    Parameters

    • url: string

      url of service

    • callback: function

      Callback method

        • (message: any): void
        • Parameters

          • message: any

          Returns void

    Returns void

Static post

  • post(url: string, content: any, callback: function): void
  • Async xhr POST call

    Parameters

    • url: string

      url of service

    • content: any

      Request body. Content is serialized in Json

    • callback: function

      Callback method

        • (message: any): void
        • Parameters

          • message: any

          Returns void

    Returns void

Generated using TypeDoc