Error in Javascript; Includes Fix
-
The footer.php in the root directory has a script tag in it. That script tag makes a common issue. They use $ to represent jquery. This is not acceptable (as is) in wordpress, as wordpress doesn’t define this by default. The $ has to change to a ‘jquery’ or you need to pass it as a param in a function.
<script type='text/javascript'> jquery.ajax({ url: dsidxAjaxHandler.ajaxurl, type: 'post', data: { 'action':'dsidx_client_assist', 'dsidx_action': 'LoadDisclaimerAsync', 'params': '{$paramsToJS}' }, success: function(response){ jquery('#{$disclaimerPlaceholderID}').replaceWith(response); }, error: function(response){ jquery('#{$disclaimerPlaceholderID}').replaceWith(response); } }); </script>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Error in Javascript; Includes Fix’ is closed to new replies.