Title: &#8220;JavaScript not enabled&#8221; error when adding to admin dashboard
Last modified: September 29, 2018

---

# “JavaScript not enabled” error when adding to admin dashboard

 *  Resolved [MG Mason](https://wordpress.org/support/users/robear/)
 * (@robear)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-enabled-error-when-adding-to-admin-dashboard/)
 * I’m trying to add the chat box to a admin “error notice” and when posting a message
   I get the “JavaScript not enabled” error. Although the chat box works fine on
   any regular page.
    I’m testing in the twenty-seventeen theme on my localhost 
   and have a blank “chat url” in “Targeted loading” to allow javascript to load
   on every page. It looks like jQuery is loading for the admin dashboard, but it
   seems like when I get the error the page is redirecting to “simple-ajax-chat-
   core.php” If it will help I can create a test site for you to see, but this is
   the function I’m adding to functions.php to load the chat box in a “error notice”
 *     ```
       function admin_support_notice() {
       	?>
       	<div class="error notice support">
       	   <h2><?php _e( 'Support is working on your site - Please save your work and wait for this notice to be removed - Thank You!', 'asn_textdomain' ); ?></h2>
                  <?php if (function_exists('simple_ajax_chat')) simple_ajax_chat(); ?>
       	</div>
       	<?php
       	}
       add_action( 'admin_notices', 'admin_support_notice' );
       ```
   
 * Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-enabled-error-when-adding-to-admin-dashboard/#post-10735856)
 * Hi MG Mason,
 * Glad to help. I’m not sure exactly what you are trying to do, but it sounds like
   it might be outside of what the plugin offers out of the box. One thing I can
   tell you is that, as of a few versions ago, SAC requires JavaScript in order 
   to work. Specifically, jQuery is required in order for complete functionality.
   Also the required SAC JavaScript file must be included wherever the chat box 
   is to be displayed.
 *  Thread Starter [MG Mason](https://wordpress.org/support/users/robear/)
 * (@robear)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-enabled-error-when-adding-to-admin-dashboard/#post-10736956)
 * Thank you for the feedback, it helped me solve the issue.
    I added the JS file
   into the function so it would load into the admin header for the dashboard, and
   now it works well. `<script type='text/javascript' src='../wp-content/plugins/
   simple-ajax-chat/resources/sac.php'></script>`
 * Thanks again 🙂
 *  Plugin Author [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-enabled-error-when-adding-to-admin-dashboard/#post-10737422)
 * Very welcome 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘“JavaScript not enabled” error when adding to admin dashboard’ is closed
to new replies.

 * ![](https://ps.w.org/simple-ajax-chat/assets/icon-256x256.png?rev=1473439)
 * [Simple Ajax Chat – Add a Fast, Secure Chat Box](https://wordpress.org/plugins/simple-ajax-chat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-ajax-chat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-ajax-chat/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-ajax-chat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-ajax-chat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-ajax-chat/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/javascript-not-enabled-error-when-adding-to-admin-dashboard/#post-10737422)
 * Status: resolved