BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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;
1 REPLY 1
Chevell_sas
SAS Employee
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;

sas-innovate-2024.png

Today is the last day to save with the early bird rate! Register today for just $695 - $100 off the standard rate.

 

Plus, pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 1169 views
  • 0 likes
  • 2 in conversation