My jquery code and Javascrip files are not working?

I uploaded all the files the same as my local host in the Temp folder. The HTML/CSS goes well.
But, could you please explain why javascript files are not working? while in my local server with wamp, everything goes well!

thanks in advance.
bezick

What is your website address please?

https://effete-dam.000webhostapp.com/

Can you visit general settings on the 000webhost control panel and enable

[code]Show errors

When enabled - all website errors (notices, warnings, fatal errors) will be visible. In production mode recommended to be turned off.[/code]

And also turn off the banner to see if this resolves any issues or helps

[code]Show banner

Turn off to disable website banner.[/code]

Also your site should be configured to http not https - for example when you visit only type http:// not https://

<!--<br /> <b>Warning</b>: mysqli::__construct(): (HY000/1045): ProxySQL Error: Access denied for user 'root'@'2a02:4780:bad:f00d::2' (using password: NO) in <b>/storage/h2/024/612024/public_html/index.php</b> on line <b>96</b><br /> Connection failed: ProxySQL Error: Access denied for user 'root'@'2a02:4780:bad:f00d::2' (using password: NO)

Appears in the bottom of your code

I’m not sure if you have a script there or not but your user would be like id132432_user @ id13432_database @ localhost etc

Not sure if that is your doing or not.

I fixed the db connection,

so still cannot see erros :-?

and have the same problem with scripts!

also I have just put my scripts at the end of my codes. do you think it is the case?

The console says:
> Mixed Content: The page at ‘https://effete-dam.000webhostapp.com/’ was loaded over HTTPS, but requested an insecure script ‘http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js’. This request has been blocked; the content must be served over HTTPS.

Edit:

Your site is secure (https) and you are trying to use a insecure file (http).
Try this:
Go to line 104, and replace
> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>

with
><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>

Also I suggest to fix the double <html> tag

Use only http://

Do not use https://

Visit your site using http:// and any scripts relating to your site should be coded http://

I got it ; Thanks for your supporst.

There is just one issue: I can not login into my .000webhost account! :-/

it says:
“We are currently experiencing temporary issues with our service. Please try filling in your form again.”

http://status.000webhost.com

Once the green monitors are all green you’ll be back online.

it looks it is not going to be fixed soon!!

Depends how long is soon?
I would expect it to be resolved today.

If you are time limited then upgrade to premium.

:smiley:

It is just about reliability, for now I prefer to wait.

Thanks again for your immediate response.

1 Like

thank you for your answer ! This save me :slight_smile: