How To Disable WordPress Profile Access for Subscribers

Author: , January 24th, 2020

How To Allow Cross-Site Javascript Using Apache

Author: , September 24th, 2015

The key is to send a response header like this: Access-Control-Allow-Origin: * In the Apache web server, one enables this via the following directive: Header set Access-Control-Allow-Origin * This requires the use of mod_headers, which is enabled by default in Apache. For example:

How To Create a WordPress Plugin for AJAX Support

Author: , July 9th, 2013

Happy Coding!

How To Use a Spinner With jquery.pager

Author: , September 26th, 2011

Just an addendum to the previous post about ajax loader spinner images…

How To Implement A Very Simple Ajax Loader Using jQueryUI

Author: , September 23rd, 2011

GET Resources LOAD Resources

HTML Substitute your own loader graphic from


JS Show the spinner called “first”: jQuery(‘#Spinner-first’).fadeIn(); Hide the spinner called “first”: jQuery(‘#Spinner-first’).fadeOut(); Hide all spinners that start with an ID of “Spinner”: jQuery(‘[id^=Spinner]’).fadeOut(); That’s All Folks…

How To Load jQuery UI Tabs From JSON

Author: , May 4th, 2011

Use the “dataFilter” Ajax option given the following server reply: { status: 17, result: “You are not logged in” } [code] var $tabs = jQuery(‘#menutabs’).tabs({ ajaxOptions: { dataFilter: function(server_json_reply){ var data = jQuery.parseJSON(server_json_reply); if (data.status == 17) { alert(‘Your session has timed out and you have been logged off.’); window.location = “/”; } return data.result; […]

Examples of onChange and the Select Statement

Author: , September 29th, 2009

Some examples of how to access the option values and text in an HTML SELECT via javascript: onchange=”groupsFilter(this.options[this.selectedIndex].value); return false;” onChange=”if (this.options[this.selectedIndex].value != ”) submit()” Take the option text currently highlighted and use it to populate another location in the web page: replaceSpan(‘unit1’,this.options[this.selectedIndex].text);

Finally, Some PainMinder™ Polish!

Author: , September 29th, 2009

Tuesday, 1:52am…Finally got the Groups filter working! It allows the user to create as many groups as they want, then allows them to assign each medication to as many groups as they want. Then can use the groups to filter on the Medications page. Tomorrow I will write the code to a group of meds […]