{"id":12851,"date":"2011-04-15T01:08:57","date_gmt":"2011-04-15T01:08:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/ahax\/"},"modified":"2011-04-15T01:56:36","modified_gmt":"2011-04-15T01:56:36","slug":"ahax","status":"publish","type":"plugin","link":"https:\/\/el.wordpress.org\/plugins\/ahax\/","author":6982881,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"1.0","tested":"3.1.4","requires":"2.8","requires_php":"","requires_plugins":"","header_name":"AHAX","header_author":"Daniel Doezema","header_description":"","assets_banners_color":"","last_updated":"2011-04-15 01:56:36","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"http:\/\/dan.doezema.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":2008,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[2453,5675,221,5676,5678,734,229,5677,1141],"plugin_category":[59],"plugin_contributors":[],"plugin_business_model":[],"class_list":["post-12851","plugin","type-plugin","status-publish","hentry","plugin_tags-action","plugin_tags-ahax","plugin_tags-ajax","plugin_tags-bind","plugin_tags-dependancy","plugin_tags-development","plugin_tags-javascript","plugin_tags-public","plugin_tags-theme","plugin_category-utilities-and-tools","plugin_committers-veloper"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/ahax.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>AHAX is a drop-in solution that allows theme or plug-in developers to take advantage of a very simple and streamlined way of making AJAX requests.<\/p>\n <p>The goal of this plugin is to make the process of setting up an AJAX request as simple as possible.<\/p>\n <p>This plugin centers AJAX requests around an \"action.\" This action is \"bound\" to a function (handler) on the back-end and called to from front-end via a custom JavaScript class method -- this process is demonstrated below.<\/p>\n <h4>Back-End<\/h4>\n <pre><code>ahax::bind( 'get_random_number', 'generate_number' ); function generate_number($output) {     $max = abs( ( int ) $_POST['max'] );     $output = mt_rand( 0 , ( $max &lt;= 1000 ? $max : 1000 ) );     return $output; } <\/code><\/pre>\n <h4>Front-End<\/h4>\n <pre><code>var ahax = new AHAX(); ahax.post( 'get_random_number', { max : 1000 }, function( response ) {     jQuery( '#ahax_number' ).html( response ); }); <\/code><\/pre>\n <h4>Website<\/h4>\n <p>http:\/\/dan.doezema.com\/2011\/04\/ahax-wordpress-plugin<\/p>\n <h4>Author<\/h4>\n <p><a href=\"http:\/\/dan.doezema.com\">Daniel Doezema<\/a><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>ahax<\/code> plugin directory to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<\/ol>\n\n<!--section=faq-->\n<h4>Where can I get more information on AHAX?<\/h4>\n <p>There is an extensive blog post -- with a live example -- located here: http:\/\/dan.doezema.com\/2011\/04\/ahax-wordpress-plugin<\/p>","raw_excerpt":"A plugin that provides easier access to AJAX functionality within plugins and themes.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/el.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/12851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/el.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/el.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/el.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=12851"}],"author":[{"embeddable":true,"href":"https:\/\/el.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/veloper"}],"wp:attachment":[{"href":"https:\/\/el.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=12851"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/el.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=12851"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/el.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=12851"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/el.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=12851"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/el.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=12851"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/el.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=12851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}