Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using a .txt file instead of .js

Status
Not open for further replies.

okiiyama

IS-IT--Management
Jan 3, 2003
269
US
My company's website host does not allow direct web page editing, and its a slight pain. There are some little tricks I'm discovering as to how to get around some of their restrictions. One restriction they have is what types of files can be uploaded to there server. I can't upload .js files, but I can upload .txt files.

So, my question is: Is it okay to have an external javascript file as a .txt file? I did test to see if it works and it does, but I may be missing something.


Thanks.
 
You're not missing anything. You can name the file pretty much anything you want, just refer to the name in the <script src=""> tag correctly and it'll work fine.

If you have a web hosting service that has those restrictions, you might consider pushing for someone less restrictive.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top