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

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 1201 views
  • 0 likes
  • 2 in conversation