Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

cl_gui_html_viewer and javascript

Former Member
0 Likes
1,115

hi,

I wonder if I can add some javascript code with cl_gui_html_viewer.

Let's says that if the user click on the container I would like to pop up a message.

I try to do it with method set_script and event navigate_complete but I failled.

Thank you

1 ACCEPTED SOLUTION
Read only

athavanraja
Active Contributor
0 Likes
767

you can do that. it is possible, just place the script for popu up within the html template .

Regards

Raja

3 REPLIES 3
Read only

athavanraja
Active Contributor
0 Likes
768

you can do that. it is possible, just place the script for popu up within the html template .

Regards

Raja

Read only

0 Likes
767

Can you give an example, please?

Read only

0 Likes
767

quick and dirty:

copy paste the following code in a noted pad

<i><a href="#" onclick="alert('test');">test</a>

<br>

<a href="http://www.google.com" target="_blank">google</a></i>

and save it as test.html in your desktop.

run program SAPHTML_DEMO1 and enter the path for test.html in the input field and hit enter, you should now see the html page inside the container , click on the links to see how it works.

hope this helps.

Regards

Raja