Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using a .js file

 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I'm using netbeans 3.6, and I want to put my scripts into an External .js file.
What I did was open a text file called external.js, put the scripts in here, then inside the html page...

But I keep getting an error, when I include src="external.js".
Netbeans doesn't have the option to use a .js file, so I just used a text file.
Is this right??
Thanks for any help
 
colin shuker
Ranch Hand
Posts: 750
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, I copied the external.js contents into a notepad file and saved that into my web application in netbeans 3.6, and it now works.

But is that the official way to use external scripts in netbeans 3.6??
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since this is all about netbeans, I'm moving it to the IDEs forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic