Acciones
Task #600
abiertaUser story #594: Board live search
Javascript method for Ajax POST request
Task #600:
Javascript method for Ajax POST request
Fecha de inicio:
2025-10-16
Fecha fin:
2025-10-24 (Finaliza en 4 días)
% Realizado:
0%
Tiempo estimado:
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 (04 de Oct - 18 de Oct)
Tags:
Descripción
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.
Acciones