The SAS Output Delivery System and reporting techniques

how can I specify text to display during the page load?

Reply
N/A
Posts: 0

how can I specify text to display during the page load?

I have a large number of HTML tags and because of that it takes a long tim to load. I have tried to use the answer in FAQ (3628) and it worked out. But ! - the problem is that I want the message to show only when the first page i loaded. Every time I start another report the message appeared. I include parts of my program below.
T


replace body from document /
preimage="projpri2.jpg" prehtml='


Page loaded ...

'; Style Startupfunction from Startupfunction / tagattr="setTimeout('loadimages()',3000)";



ODS HTML PATH=&HTMLOUT (URL=NONE)
BODY="PRIBODY.HTML"
FRAME="PRIFRAME.HTML"
CONTENTS="PRICONTENT.HTML"
STYLESHEET='TEMP.CSS'
NEWFILE=PAGE
CODEBASE="HTTP://10.69.56.54/SASWEB/GRAPH/ACTIVEXGRAPH/SASGRAPH.EXE#VERSION=9,1,0,304"
CODE=(URL="HTTP://10.69.56.54/ODS_FILER/JAVA_HTML4/JAVASCRIPT_COLLAPSE.JS")


headtext=""
STYLE=SLLBLUE;
SAS Employee
Posts: 88

Re: how can I specify text to display during the page load?

Give the below code a try. This applies a smaller version of this script using the HEADTEXT= option which the other example used, however this version does not require the use of the template. Using the HEADTEXT=, the string is limited to 256. If we need more than this based on the text that you want to display, we can add it to a tagset.

data one;
do i=1 to 5000;
output;
end;
run;

ods html file="temp.html"

headtext='

loading...please wait


';

proc print data=one;
run;

ods html close;
Ask a Question
Discussion stats
  • 1 reply
  • 127 views
  • 0 likes
  • 2 in conversation