cancel
Showing results for 
Search instead for 
Did you mean: 

BSP - Javascript

prabhu_s2
Active Contributor
0 Kudos

Hi

I'm new for BSP and trying my hands on creating a bsp application that implements Java script....Please can someone provide inputs on how to

1. create subfolders (to organise the pages/scripts)>

2. import java script?

to write javascripts should i go for any specific editors?

Accepted Solutions (0)

Answers (1)

Answers (1)

lisa_miller3
Participant
0 Kudos


I prefer to keep my .css and .js files under PAGES WITH FLOW LOGIC - easier to edit from there.

You can import them into your .htm files as follows (I keep this in a page fragment and include in each view):

<%@page language="abap: %>

...

<htmlb:documentHead>

     <htmlb:headInclude/>

          <link rel="stylesheet" type="text/css" href="name.css" />

          <script type="text/javascript" src="name.js" />   

</htmlb:documentHead>