-2
Have (a|a) (great|great) (day|late|night)!
All right!
When inserting many functions in a <script type="text/javascript"></script>
My code is not running all of them!
The browser console does not show no errors, and runs them normally if I call them by the console, however, if I call them by code, the script does not execute them, nor even shows this error below: Function call is Undefined.
So I created an external JS file thinking it could be the number of functions (around 20 functions for example) but nothing helped!
I researched then. I found in a certain site around, I forgot what it was, that suggested to add in the attribute language="javascript": <script type="text/javascript" language="javascript">/*Código aqui*/</script>
Said :D...for a short time. :/
When adding a few more functions, the code no longer performs. But if I call them that in the address bar: javascript:nameFunction(); or so on the console: nameFunction() it works normally.
Not to open another duplicate question I’ve seen here in stackoverflow similar questions. The problem with these is that people put functions within other functions, so they don’t go global; that’s not my case. What could it be?
Code address: http://leonardolima.epizy.com/calendario.php
To test, click on the year 2016.
Place your code here or make it available in any way.
– noeyeat
I added the code url
– Leonardo Lima De Sousa
Press the F12 key to open the Console and see if an error appears while loading your script.
– Tony