# JavaScript

**URL:** <https://forum.infinityfree.com/t/javascript/88678>\
**Category:** Hosting Support\
**Created:** [January 14, 2024, 8:36am UTC](https://forum.infinityfree.com/t/javascript/88678 "2024-01-14T08:36:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon1090881](https://forum.infinityfree.com/letter_avatar/anon1090881/32/6_449c533f586939b6e5f246632a46421f.png) [@anon1090881](https://forum.infinityfree.com/u/anon1090881)\
**Post date:** [January 14, 2024, 8:36am UTC](https://forum.infinityfree.com/t/javascript/88678/1 "2024-01-14T08:36:44Z")

</div>

### Website URL

[catellie.epizy.com](http://catellie.epizy.com)

(please specify the URL of the site on which you are experiencing the problem)

Hi I have a script.js but for some reason its not loading correctly even though its linked to index.html.

Its like the code in script.js is not read thoroughly, some commands are not colour highlighted when you open it in file manager and click edit

---

<div class="post-metadata">

**Author:** ![Herbert](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/herbert/32/43603_2.png) [@Herbert](https://forum.infinityfree.com/u/Herbert)\
**Post date:** [January 14, 2024, 8:44am UTC](https://forum.infinityfree.com/t/javascript/88678/2 "2024-01-14T08:44:05Z")

</div>

Hey there!

From my end, your script loads just fine. Try clearing your browser cache. And for the file manager, it’s normal not to show specific colors for the codes like in editors since it’s just made for quick edits.

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [January 14, 2024, 8:48am UTC](https://forum.infinityfree.com/t/javascript/88678/3 "2024-01-14T08:48:43Z")

</div>

by default the section is hidden (CSS)

 ![image](https://forum-cdn.infinityfree.net/original/3X/7/5/758a19952b96e3adaeeec594455fa584a01377e2.png)

your JS should show it on click

probably the problem is in these CSS classes or something in JS

check this code or somewhere in that script.js file

 ![image](https://forum-cdn.infinityfree.net/original/3X/c/9/c986e09244c33ee54e5e0b6c61cc3f385c77ad02.png)

I don’t have time right now to look at all the CSS classes you have  
specified in HTML

Maybe it’s easier for you to use jQuery for these things?

* * *

the result should be something like this  
 ![image](https://forum-cdn.infinityfree.net/original/3X/b/6/b698911f285d79efb9de5999fd42a18dac918dc4.png)

---

<div class="post-metadata">

**Author:** ![Oxy](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/oxy/32/37989_2.png) [@Oxy](https://forum.infinityfree.com/u/Oxy)\
**Post date:** [January 14, 2024, 2:47pm UTC](https://forum.infinityfree.com/t/javascript/88678/4 "2024-01-14T14:47:51Z")

</div>

I looked through your JS a bit again  
there are a lot of errors from calling things (eg showOptions) before they are defined,  
also several conflicts, undefined etc.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [January 21, 2024, 2:48pm UTC](https://forum.infinityfree.com/t/javascript/88678/5 "2024-01-21T14:48:06Z")

</div>

Closed on January 21, 2024, 2:48pm UTC

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