linux - Javascript not working on GoDaddy hosting -


here code.

var csharpbuttons = document.getelementsbyclassname("csharpbutton"); var jsbuttons = document.getelementsbyclassname("jsbutton"); var csharp = document.getelementsbyclassname("csharp"); var js = document.getelementsbyclassname("js");  function switchtocsharp()  {     (i = 0; < csharpbuttons.length; i++) //change button colors     {          csharpbuttons[i].style.backgroundcolor = "#00aeef";     }     (i = 0; < jsbuttons.length; i++)      {          jsbuttons[i].style.backgroundcolor = "lightgrey";     }      (i = 0; < csharp.length; i++) //change code     {          csharp[i].style.display = "inline";     }     (i = 0; < js.length; i++)      {          js[i].style.display = "none";     }  }  function switchtojs()  {     (i = 0; < jsbuttons.length; i++) //change button colors     {          jsbuttons[i].style.backgroundcolor = "#00aeef";     }     (i = 0; < csharpbuttons.length; i++)      {          csharpbuttons[i].style.backgroundcolor = "lightgrey";     }      (i = 0; < csharp.length; i++) //change code     {          csharp[i].style.display = "none";     }     (i = 0; < js.length; i++)      {          js[i].style.display = "inline";     } }    

godaddy said permission fine. works charm on desktop, said must wrong code. said outdated way of coding it.

nothing happens when press button, try visit http://spacehelmetstudios.com/tutorials/unity2d/directionalgravity2d/directionalgravity2d.html , try change c# js.

i'm not going lie, don't know server side of things.

any ideas? thanks.

i know isn't answer, in developers console don't see js file downloaded , console error saying functions not defined. maybe forgot add js files in <head> tag?


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -