on 09-07-2008 2:18 PM
Hi,
We have a javascript form validation program that we would like to use in our BSP applications. Unless I include this in every BSP application it does not work. I have tried specifying this using the src="xxxx.js" within the tag and does not work. Anythoughts?
Albert
Yes, I have tried it.
Albert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I have uploaded the source file into the MIME repository using the program BSP_UPDATE_MIMEREPOS.
Albert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
BTW, looks like I cannot post anything with script tag, and so I removed the < >.
Albert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I was trying to, but looks like I cannot post javascript code.
Here is my sample code.
<htmlb:content design="classicdesign2002design2003" >
<htmlb:document>
<htmlb:documentHead title="Title" >
<%@ include file="MyJavascript.js"%>
.
</htmlb:documentHead>
<htmlb:documentBody marginLeft="100" marginRight="50">
.
.
.
</htmlb:documentBody>
</htmlb:document>
</htmlb:content>
The above works. However, if I use
<htmlb:content design="classicdesign2002design2003" >
<htmlb:document>
<htmlb:documentHead title="Title" >
script language="javascript" src="/SAP/BC/BSP/SAP/ZAPPLICATION/MyJavascript.js"/script
.
</htmlb:documentHead>
<htmlb:documentBody marginLeft="100" marginRight="50">
.
.
.
</htmlb:documentBody>
</htmlb:document>
</htmlb:content>
does not work.
my javascript file does not have script tags.
Albert
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Before you can use:
script language="javascript" src="/SAP/BC/BSP/SAP/ZAPPLICATION/MyJavascript.js"/script
you have to upload your file in the MIME Repository. Have you done so, or did you put your JS file as a BSP page in your application?
The code above should work if your JS file is in the MIME repository.
Regards,
Tanguy
Hi,
I am not sure I understood well your question, but maybe you could use page fragments.
Put your javascript code into a page fragment, and include it in your BSP applications.
Hope it is relevant...
Regards,
Tanguy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.