Project

General

Profile

Actions

Task #600

open

User story #594: Board live search

Javascript method for Ajax POST request

Task #600: Javascript method for Ajax POST request

Added by Smith Paul 21 days ago. Updated about 4 hours ago.

Status:
In Progress
Priority:
Normal
Target version:
-
Start date:
12/16/2025
Due date:
12/24/2025 (Due in 21 days)
% Done:

0%

Estimated time:
14:00 h
Company custom field:
Deals:
Contacts:
Checklist custom field:
  • Define function signature and validate input
  • Implement fetch with JSON and CSRF
  • Add error handling and retry logic
  • Write unit tests for all cases
  • Document usage, examples, and types
Sprint:
Sprint #1 (Dec 04 - Dec 18)

Description

Build a reusable JavaScript method to perform an AJAX POST request using fetch, sending JSON payloads and handling CSRF tokens when required. The method should validate inputs, set correct headers, and serialize/deserialize JSON safely. It must implement robust error handling for non-2xx responses, network failures, and timeouts, returning a clear, Promise-based result. Include concise documentation and examples so it can be dropped into any project with minimal setup.

Actions

Also available in: PDF Atom