Design Patterns with PHP and JavaScript Examples
24 design patterns in PHP and JavaScript (ES5), from Abstract Factory and Singleton to Observer and Visitor, each with code in both languages.
Tag, 5 posts
24 design patterns in PHP and JavaScript (ES5), from Abstract Factory and Singleton to Observer and Visitor, each with code in both languages.
PHP closures and anonymous functions compared with JavaScript: callbacks without create_function, pulling outer variables in with use, and recursion.
What FBML and FBJS were and how a Facebook app worked in 2008: tag markup, sandboxed JavaScript, the PHP client library and the REST API. All long retired.
A walkthrough of how to build on-hover term definitions using AJAX. When a visitor hovers over a technical keyword, JavaScript fetches the definition from a server endpoint and shows it in a popup, without any page reload.
Users coming from desktop apps tend to find web application interfaces frustrating. With AJAX, there is no good reason for that. This article walks through building an interactive data grid with sorting, filtering, and pagination, all without reloading the page.