Home AJAX Modal Accordion fillComboBox

TMJRock Live AJAX Testing

This page tests the $$$.ajax component against a live MockAPI database.

1. Create Designation (POST via JSON)


Waiting for action...
$$$.ajax({
  "methodType": "POST",
  "data": { title: "Software Engineer" },
  "sendJSON": true,
  "success": function(response) { ... },
  "failure": function() { alert('Error!'); }
});

2. Fetch All Designations (GET)



$$$.ajax({
  "methodType": "GET",
  "success": function(response) {
    var data = JSON.parse(response);
  },
  "failure": function() { alert('Error!'); }
});

3. Search Designation by Code (GET with Query)

Waiting for action...
$$$.ajax({
  "data": { "code": targetCode }, // Converts to ?code=123
  "methodType": "GET",
  "success": function(response) { ... },
  "failure": function() { alert('Error!'); }
});

4. Create Designation (POST via Form Data)


Waiting for action...
$$$.ajax({
  "methodType": "POST",
  "data": { title: "QA Tester" },
  "sendJSON": false,
  "success": function(response) { ... },
  "failure": function() { alert('Error!'); }
});