Note that there are some explanatory texts on larger screens.

plurals
  1. POAjax Doesn't give me anything in the console?
    primarykey
    data
    text
    <p><strong>Updated Question to better reflect the communities support</strong></p> <p>Based on community support I have changed the Ajax function to be as such:</p> <pre><code>(function($){ $(document).ready(function(){ $('a').click(function(e){ var el = $(this).prev('input[type="checkbox"]'); if(el.is(':checked')){ el.prop('checked',false); } $.ajax({ url : "http://localhost/wordpress/wp-content/themes/Aisis-Framework/CoreTheme/AdminPanel/Template/Helper/UncheckPackageThemeHelper.php", type : 'GET', data : { 'element_name' : el.prop('name') }, success: function(data, textStatus, jqXHR){ console.log(data); }, error: function(jqXHR, textStatus, errorThrown ){ console.log(jqXHR, textStatus, errorThrown); } }); e.preventDefault(); }); }); })(jQuery); </code></pre> <p>The resulting PHP Class is as such:</p> <pre><code>class CoreTheme_AdminPanel_Template_Helper_UncheckPackageThemeHelper{ private $_element_name = null; public function __construct(){ if(isset($_GET['element_name'])){ $this-&gt;_element_name = $_GET['element_name']; echo $this-&gt;_element_name; } } } </code></pre> <p>The network tab shows that I have some out put from activating the Jquery which I have shown below:</p> <p><a href="https://i.stack.imgur.com/vVxo4.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vVxo4.png" alt="enter image description here"></a></p> <p>The Console is spitting out no errors, yet not echoing the element name. I have read up on the <a href="http://api.jquery.com/jQuery.ajax/" rel="nofollow noreferrer">Jquery Ajax API</a> and everything I have been doing, thus far, seems to be correct. Yet I am not getting the desired out put.</p> <p><strong>Note:</strong> The response tab is empty.... In other words I am not getting a response back.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload