jQuery not available in sub-domain
-
I’ve created a sub-domain, and installed WordPress. I then installed the WP jQuery Plus plugin so I would have access to jQuery. jQuery(document).ready is not executing. I’ve included the wp_enqueue_script(“jquery”) script in my page, but still no access. What else is necessary?
Bob K.
-
What errors, if any, appear in your browser’s console? Please provide a link to a page on your site where we can see this. Thanks.
https://vehicle.elephantearsoftware.com/
There are a couple of alerts() to verify that jquery is not working. No errors appear. And at this point it runs slowly, so the second alert will take a couple of seconds.
I get lots of 404s in the console and it looks like jquery is not laoded. In your code where you enqueue your scripts, do you declare jquery as a dependency?
Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxcore.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxscrollbar.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxmenu.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxbuttons.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxdata.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxlistbox.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxdropdownlist.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.selection.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.columnsresize.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.filter.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.sort.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.pager.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.grouping.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxbuttons.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxscrollbar.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxmenu.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxlistbox.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxdropdownlist.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.selection.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.columnsresize.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.filter.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.sort.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.pager.js Failed to load resource: the server responded with a status of 404 (Not Found) https://vehicle.elephantearsoftware.com/jqwidgets/jqxgrid.grouping.js Failed to load resource: the server responded with a status of 404 (Not Found) vehicle.elephantearsoftware.com/:23 Uncaught ReferenceError: jQuery is not defined at vehicle.elephantearsoftware.com/:23 vehicle.elephantearsoftware.com/:34 Uncaught ReferenceError: jQuery is not defined at vehicle.elephantearsoftware.com/:34 vehicle.elephantearsoftware.com/:103 Uncaught ReferenceError: jQuery is not defined at vehicle.elephantearsoftware.com/:103 https://vehicle.elephantearsoftware.com/jqwidgets/styles/jqx.base.css Failed to load resource: the server responded with a status of 404 (Not Found)
Since you said this is based on a plugin, the developers and users of this theme/plugin would be the best people to ask. You can reach them here:
https://www.ads-software.com/support/plugin/wp-jquery-plus
-
This reply was modified 8 years, 2 months ago by
Steven Stern (sterndata).
Thank you for the quick responses. I’ll move my question over to the WP jQuery Plus plugin forum.
-
This reply was modified 8 years, 2 months ago by
- The topic ‘jQuery not available in sub-domain’ is closed to new replies.