on 11-12-2007 5:17 PM
Hello guys,
I'm working in a BSP application and I need to use an ABAP value in the JavaScript code Do you know how do I have to define this variable to be recognized in the JavaScript code?
For example, declaring <%@page language="abap"%> on top of HTM page, I can link HTMLB code with ABAP code as follows: <% ABAP VALUE %>. Exist anything similar for JavaScript?
If answer is not, exist any property of an DIV object which defines the selected row to be recovered with getElementById function?
Thanks in advance,
Arnau
LOL I forgot to put the " " ...
I was crazy looking for alternatives...
Thanks to all.
Arnau
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arnau,
You need to surround your JavaScript code like this (without the spaces before and after script):
< script language="Javascript">
window.open("<%=ABAP_VARIABLE%>").focus();
</script >
Regards,
Patrick.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check the samples below.
var myvar = '<%= myabapvarnname%>' ;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.