‎2006 Jan 29 5:55 PM
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
‎2006 Jan 30 5:31 AM
you can do that. it is possible, just place the script for popu up within the html template .
Regards
Raja
‎2006 Jan 30 5:31 AM
you can do that. it is possible, just place the script for popu up within the html template .
Regards
Raja
‎2006 Jan 30 6:28 AM
‎2006 Jan 30 6:38 AM
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