This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes IDEs, Version Control and other tools and the fly likes Using a .js file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Using a .js file" Watch "Using a .js file" New topic
Author

Using a .js file

colin shuker
Ranch Hand

Joined: Apr 11, 2005
Posts: 743
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

Joined: Apr 11, 2005
Posts: 743
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

Joined: Jan 10, 2002
Posts: 60049
    
  65

Since this is all about netbeans, I'm moving it to the IDEs forum.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using a .js file
 
Similar Threads
External .js files again
WebSphere 6.1.0.0 and JavaScript uissue
Prototype Ajax.Request error - Function Expected Options
Linking to so many jquery plugins
multiple js and jsp