on 12-14-2004 2:03 PM
Hi all,
is it possible to set the mouse pointer from pointer to hour glass and back while a web site is loading in the html viewer? If yes, how? Which method is to use? Which attribute needs to be set?
regards
Siggi
Hi Raja,
it is displaying the text, nothing else happens.
regards
Siggi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looks like there is a problem with the html code in your template.
just copy paste the code below into notepad and save the file with .html extension into the local drive. Then open the saved file using Internet Exploere and tell me what happens.
<b>start of code</b>
<html>
<head>
<title>New Page 1</title>
<script language="javascript">
function loadurl(url){
window.open(url , "_self")
}
</script>
</head>
<body onload="javascript:loadurl('http://www.yahoo.com')">
Loading . . . . .
</body>
</html>
<b>end of code</b>
Regards
Raja
> Hi Raja,
>
> the internet explorer is displaying the content of
> the file. Nothing else happens. We are using IE 5.5
<b>by content of the file do you mean 'Loading....' and nothing else happens?</b>> regards
>
> Siggi
I am using IE6.0. But dont know if thats the problem. Any how try this alternate approach.
<html>
<head>
<title>New Page 1</title>
</head>
<body>
Loading . . . . .
</body>
<script language="javascript">
document.location = 'http://www.yahoo.com'
</script>
</html>
Regards
Raja
Hi,
I tried this alternative also, but all I get in the IE is
<html>
<head>
<title>New Page 1</title>
</head>
<body>
Loading . . . . .
</body>
<script language="javascript">
document.location = 'http://www.yahoo.com'
</script>
</html>
So IE is displaying the content of the file (the complete coding).
regards
Siggi
No way.
If you had just pasted the code below into a notepad and saved it into your desktop as html file and double click it IE will open and you will first see "Loading...." and then www.yahoo.com will load into that page.
<html>
<head>
<title>New Page 1</title>
</head>
<body>
Loading . . . . .
</body>
<script language="javascript">
document.location = 'http://www.yahoo.com'
</script>
</html>
something is wrong. Do you have some web programmers in your place. Show him what you are doing. He will be able to help you, in case if you are making some minor mistakes. I can't think of a thing where you can go wrong in this example. its pretty simple and straight forward.
Regards
Raja
Hi all,
thanks for your replies. Doing a loop is something I already had in mind, but this also means, that the user has to wait for a defined time until he is able work in his session again. Is there no method or attribute to be called or to be set? I am dealing with cl_gui_html_viewer.
regards
Siggi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The javascript has to be inside the HTML page. But before going there can you answer the following question. It will help us to anyalyze it better.
1. The content inside your HTML viewer - are you loading an external URL or are you building the HTML in your program or using HTML templates?
2. Where do you want the progress bar -> while lodaing the HTML document in the view at the SAP GUI status bar or
within the HTML page itself?
Regards
Raja
Hi Raja,
thanks for your reply, here the ansers to your questions.
1. In R/3 I am getting the URL out of the roles of the current User in BW (Web-Query). So I would say it is a external url.
2. I want the progress bar, if possible, in the html page which is a object of type cl_gui_html_viewer on a dynpro.
Hope this helps you, solving my issue.
regards
Siggi
Ok. just copy the code below and put it in a notepad and change the URL and save it as a html document.
***start of code
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<b><META HTTP-EQUIV=Refresh CONTENT="0; URL=<your BW webquery URL>"></b> <title>New Page 2</title>
</head>
<body>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
Loading ...... </p>
</body>
</html>
***end of code
Got to transaction SMW0
Choose the radio button "HTML templates for WebRFC application" and hit ENTER and then hit execute from the next screen.
In the next screen
Click on create and give a object name and description.
and import the HTML file you have saved.
Now within your abap program.
call method html_control->load_html_document
exporting
document_id = '<object you have created in SMW0'
importing
assigned_url = doc_url
exceptions
others = 1.
if sy-subrc eq 0.
call method html_control->show_url
exporting
url = doc_url.
endif.
In this example we have hard coded the URL. If you want to dynamically assing a new URL from your ABAP into this template then you need to use place holders in the HTML template and replace the place holder for URL with appropriate value using FM
WWW_HTML_MERGER
.Also if you want some nice graphical progress bar you may have to add some nice .gif file along with Loading.... message in the template.
Hope i am clear.
Regards
Raja
Hi Raja,
I followed your instruction and just for testing I changed <your BW ...> to http://sap-ag.de
This is what I get right now in my html viewer object:
<html>
<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<META HTTP-EQUIV=Refresh CONTENT="0; URL=http://www.sap-ag.de"> <title>New Page 2</title>
</head>
<body>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
Loading ...... </p>
</body>
</html>
What is wrong?
Siggi
Hi,
The META refresh tag is not working withing SAPHTML control. Yersterday when i posted the code i didnt test it inside SAPHTML control. Sorry for that. Instead use the following code(i have tested and its working).
<html>
<head>
<title>New Page 1</title>
<script>
function loadurl(url){
window.open(url , "_self")
}
</script>
</head>
<body onload="javascript:loadurl('http://www.yahoo.com')">
Loading . . . . .
</body>
</html>
Regards
Raja
Hi Raja,
now we had our weekend, and I can answer again. I did everything you explained in your message from Dec 15, 2004 7:39 AM, but replaced the html-file with the content you provided at last. Additionally I imported the html file to my 'HTML templates for WebRFC applications'.
regards
Siggi
Message was edited by: Siegfried Szameitat
Hi plz copy the peice of code into some Zprogram and run it if it solve your problem give points accordingly
code
-
DATA: percentage_text TYPE c LENGTH 5.
DO 100 TIMES.
WAIT UP TO '0.5' SECONDS.
percentage_text(3) = sy-index.
percentage_text+3 = '%'.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR' EXPORTING
percentage = sy-index
text = percentage_text.
ENDDO.
Regards
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Some javascript might help. It only works in MIE and it could look something like this
if (navigator.appName != 'Netscape') {
for (var i=0;i < document.all.length; i++)
document.all(i).style.cursor = 'wait';
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is a function module to show the progress:
SAPGUI_PROGRESS_INDICATOR
It's not what you want; however it may be useful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.