A working example Use this in your HTML Add this to your funcitons.php
Category: AJAX
AJAX Dynamic Page Content
Simple ajax call to dynamically load page content, solving issues of page caching etc. HTML AJAX Callback
Creating an API URL
You may want a url to be used for say remote devices to connect to your site and pass information using say URL parameters and a response string. You can create a special url and trap it using the code below. However for it to work in all instances you need to have a real […]
Nonce Functions
wp_create_nonce() and wp_verify_nonce() use the logged in user ID and will not work for other users or if the user has logged out. MySiteSomeUniqueNonceNameThis field is actually defined as an action name, so you can set this differently per form on your site, so that it becomes individual form action based. However, from a basic […]
AJAX Background Post
Simple Working Example In your php (html) page In functions.php
AJAX Background Post and Get Response
Simple Working Example In your php (html) page In functions.php