cancel
Showing results for 
Search instead for 
Did you mean: 

Web Module Project and Javascript file

Former Member
0 Kudos

Hi,

I have developep my Web Module Project. Now i want integrate in the project a javascript file and call it from a html

file or a servlet. How can I do it??? In which folder of the project I have to save the javascript file??? (ex. script.js)....There is a tool in NWDS to manipulate javascript file???

THANKS

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You can place the js file inside webcontetnt folder itself. If there are lots of files, then create a folder called JS and paste the file inside this folder. Then you can use this file from JSP like this.

< script language="JavaScript" src = 'script.js'>

or

< script language="JavaScript" src = 'JS\script.js'>

Generally, JS files can be opened using notepad or wordpad from NWDS. There is no specific tool for it. Hope that answers your query.

Regards,

Harini S

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Andrea,

Please check the following [link.|http://help.sap.com/saphelp_nwce10/helpdata/en/44/f90118eb900e8fe10000000a11466f/frameset.htm]

Regards,

Alka.