jQuery not working on my website please help

http://lucenadenguecasemap.epizy.com/

jQuery not working, Im using $().load(); to populate my page. However jQuery did not work so my website became blank.

I’m using jQuery and Ajax for my website.

Additional information:

In jquery, what is the $() supposed to do or be? Is it supposed to be the body? Give your body an id. And replace $() with $(#body).load() the load function is supposed to contain an url.
Optional parameters are data (JSON data to be sent with request to the server) and callback (function to be run when your request suceeds).
Next, giving the load function and $() nothing in between the parentheses is basically asking for errors and to give you nothing. You aren’t even giving load() an url! :unamused:
This article will help with your question.

i mean $().load(); is not working. Of course it has a value.
$(#dre_content).load(‘pages/dashboard.php’);

Uncaught TypeError: Cannot read property 'length' of null
    at Object.acquireContext (Chart.min.js:7)
    at ni.construct (Chart.min.js:7)
    at new ni (Chart.min.js:7)
    at chart-area-demo.js:32
Chart.min.js:7 Uncaught TypeError: Cannot read property 'length' of null
    at Object.acquireContext (Chart.min.js:7)
    at ni.construct (Chart.min.js:7)
    at new ni (Chart.min.js:7)
    at chart-pie-demo.js:7

It looks that you’ve missed one of jquery files.

Also i cannot log in to your site. You should take a screen shot of where the .load() doesn’t work.

ohhh well i will try to re-upload it. Thank you very much. Please stand by for update.

A cookie associated with a cross-site resource at http:/ / app.infinityfree. net/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https: //www .chromestatus. com/feature/5088147346030592 and https: //www .chromestatus .com/feature/5633521622188032.
lucenadenguecasemap.epizy .com/:1 A cookie associated with a cross-site resource at https: //app.infinityfree. net/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https ://www. chromestatus. com/feature/5088147346030592 and https ://www .chromestatus. com/feature/5633521622188032.
lucenadenguecasemap.epizy .com/:1 A cookie associated with a cross-site resource at http ://infinityfree .net/ was set without the SameSite attribute. A future release of Chrome will only deliver cookies with cross-site requests if they are set with SameSite=None and Secure. You can review cookies in developer tools under Application>Storage>Cookies and see more details at https ://www .chromestatus .com/feature/5088147346030592 and https: //www. chromestatus .com/feature/5633521622188032.

My site has only warning and no error, But style not loading properly
This is the output after I login.

*still not working properly.
Page not laoding

What’s inside body tag?

I mean what’s the full code of .load function?

P.S: Are you using $(#dre_content).load('pages/dashboard.php'); or $('#dre_content').load('pages/dashboard.php');?

1 Like

By the word ‘style’, do you mean CSS? OR the jquery load?

:point_up_2:

Please don’t forget the quotes, I make mistakes like that. Don’t mix up quotes either.
The cookies are fine, ignore that.

What goes between the $() is an id of an element on the page. I don’t see an element on the page with an ID of “dre_content”. The “#” means an ID. But if you just do $(“body”) it should load the page into the body of the page. Don’t use $(#dre_content) or $(#body) – those won’t work without quotes. And unless there is an element on the page with the id of “body” you should just use it without the “#”: $(“body”)

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.