File Manager’s html editor comments out code
c2l said 11 months, 1 week ago:
I wrote a javascript function for my navigation menu and put it into my script refernced in the head <script src=”Scripts/AC_RunActiveContent.js” type=”text/javascript”></script> I then called the function in the appropriate spot in my testpage html thus: <script language=”JavaScript”>
writeHTMLasJS();</script> but every time I save my edits it automatically gets commented out so when I check the code it looks like this: <script language=”JavaScript”><!–
writeHTMLasJS();
// –></script>
This is driving me crazy! I have saved it several ways, tried putting the whole function in the head script, and also tried it as a string variable. It doesn’t matter what I do, it keeps getting commented out when I save edits!
Has anyone else had this problem?
chrisg said 11 months, 1 week ago:
@c2l,
Have you tried making the JavaScript modifications through a simple Text Editor and then uploading these changes into your hosting account?
I know simple modifications may be made through the File Manager interface, but advanced scripting endeavors may not work properly. It is generally more advisable to make the changes outside of the File Manager and then upload them to your hosting account.
Christopher G.
0 min expected wait time