on 05-11-2004 1:03 AM
Hello Experts-
Can I have a page in a BSP application that uses both JavaScript and ABAP for a page language. I want to use both these scripting languages within one same page to utilize some features of both.
I know I can't declare them both to be my page languages on the top of my page. Is there any other way that this is possible?
Can I do something with the way I open and close my script tags within the page?
Thanks,
- Vik.
Sure you can. Use 'page language' for abap, and "<script language=" for javascript.
Regards,
<b>Venky Varadadesigan</b>
SAP NetWeaver consulting.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venky-
This solution doesn't seem to work for me.
If I declare the directives on my page as:
<%@page language="abap"%>
<%@script language="javascript"%>
<%@extension name="htmlb" prefix="htmlb"%>
Then I get an error during syntax checking. The error refers to line 2 and is: "A page, Include statement, or extension directive was expected.".
So, How can I use 'page language' for ABAP, and 'script language' for Javascript?
Thank you,
- Vik.
Hi Venky:
Nevermind the previous question.
I figured it out.
I think what you were saying was that <script language> doesn't have to be a page level directive. It can be a code specific directive.
I moved the declaration from the top of the page to a section within the page where I was coding some javascript code.
It works very well now.
Thank you,
- Vik.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
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.