Skip to content
Carl Victor Fontanos
Carl Victor Fontanos

Carl Victor Fontanos

Software Engineer

I build web applications and share what I learn along the way.

© 2026

AJAX

12 tutorials

Step-by-step programming tutorials on PHP, JavaScript, Laravel, WordPress and more.

JavaScript Advanced

for await...of: Paginated APIs as a Simple Loop

Async generators hide the pagination bookkeeping - cursors, hasMore flags, page counters - behind a clean loop that fetches pages only as you consume them.

2 min 1,694
PHP Intermediate

A Real Upload Progress Bar with XMLHttpRequest and PHP

fetch() still cannot report upload progress reliably - but XMLHttpRequest has done it for fifteen years. The full pattern: progress events, a PHP receiver, and the config limits that silently break big uploads.

2 min 2,966
jQuery Intermediate

One Global Spinner for Every AJAX Call

Stop wiring loading states into every request. jQuery broadcasts global AJAX lifecycle events, and $.ajaxSetup injects headers everywhere - CSRF tokens included.

2 min 3,591
PHP Advanced

Real-Time Updates with Plain PHP: Server-Sent Events

WebSockets need infrastructure. Polling hammers your server. SSE streams live updates over normal HTTP with a PHP file and the built-in EventSource API - reconnection included.

2 min 1,925
JavaScript Beginner

Serialize an Entire Form in One Line with FormData

new FormData(form) reads every field in one call, posts natively with fetch, and Object.fromEntries turns it into JSON. You may never write form.elements loops again.

2 min 3,311