Options
All
  • Public
  • Public/Protected
  • All
Menu

Module Ajax

JMap.Util.Ajax

Here you'll find all JMap Ajax related methods

Index

Functions

Functions

del

  • JMap.Util.Ajax.del

    Deletes data on the server at the specified resource.

    example
    
    JMap.Util.Ajax
     .del({ url: "https://your-url.com" , params: { id: 3 }})
     .then(response => console.log(response))
     .catch(error => console.error(error))

    Parameters

    • config: JRequestConfig

      the request configuration(url, params, accessToken, includeHeadersInResponse)

    Returns Promise<any>

get

  • JMap.Util.Ajax.get

    Retreives data from the server at the specified resource.

    example
    
    JMap.Util.Ajax
     .get({ url: "https://your-url.com" })
     .then(response => console.log(response))
     .catch(error => console.error(error))

    Parameters

    • config: JRequestConfig

      the request configuration (url, params, accessToken, includeHeadersInResponse)

    Returns Promise<any>

patch

  • JMap.Util.Ajax.patch

    Updates data on the server at the specified resource.

    example
    
    JMap.Util.Ajax
     .patch({ url: "https://your-url.com" })
     .then(response => console.log(response))
     .catch(error => console.error(error))

    Parameters

    • config: JRequestConfig

      the request configuration (url, params, accessToken, includeHeadersInResponse)

    Returns Promise<any>

post

  • JMap.Util.Ajax.post

    Inserts or updates data on the server at the specified resource.

    example
    
    JMap.Util.Ajax
     .post({ url: "https://your-url.com", params: { title: "My title", count: 3 }})
     .then(response => console.log(response))
     .catch(error => console.error(error))

    Parameters

    • config: JRequestConfig

      the request configuration (url, params, accessToken, includeHeadersInResponse)

    Returns Promise<any>

put

  • JMap.Util.Ajax.put

    Inserts or replaces data on the server at the specified resource.

    example
    
    JMap.Util.Ajax
     .put({ url: "https://your-url.com", params: { title: "My title", count: 3 }})
     .then(response => console.log(response))
     .catch(error => console.error(error))

    Parameters

    • config: JRequestConfig

      the request configuration (url, params, accessToken, includeHeadersInResponse)

    Returns Promise<any>