LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (September 2010, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Mon, 27 Sep 2010 16:20:48 -0500
Reply-To:     Joe Matise <snoopy369@GMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Joe Matise <snoopy369@GMAIL.COM>
Subject:      Re: numerous HTML files to one
Comments: To: "Viel, Kevin" <kviel@sjha.org>
In-Reply-To:  <279E0CB25CBDEF4DB4A50E89328780E223B4F04C@CHEXCMS08.one.ads.che.org>
Content-Type: text/plain; charset=ISO-8859-1

Oh, you could absolutely make a hundred 'pages' in one HTML file - but you really don't need to. You can make 100 HTML files and have them all linked together. I'm not 100% sure I still get what you want, though.

So you have 10 items [tests you are running or whatnot] and 10 subjects for those 10 tests, so 100 different sets of images, plus a summary page. You want to have one page you open up that links to those 101 pages, and be able to toggle between them easily? Or you really want just one physical file [because it's annoying to have a bunch of files cluttering up a directory / for transfer to other people]?

One page of links is easy to do (and it looks like you've done about 2/3 of the work already in your summary page, if I understand what you mean by that correctly). You could set it up with a DIV that opened up the source page into a second div, or a frame (if you're feeling like rocking it like it's 1999).

If you actually wanted just one physical file [other than the GIFs], then the easiest way to do it is to have each child page be a separate DIV, which is hidden by default, and then have the link from the summary report 'show' that DIV. So:

<a href="#" onClick="showID(ID_Locus)">Show ID_Locus</a>

{later on}

<div id="ID_Locus" css="display:none"> <table border='0'> <tr> <td><img src="C:\GIF1.gif " height="300" width="600"/></td> <td><img src="C:\GIF2.gif " height="300" width="600"/></td> </tr> <tr> <td><img src="C:\GIF3.gif " height="300" width="600"/></td> <td><img src="C:\GIF4.gif " height="300" width="600"/></td> </tr> </table> </div>

Then just define a javascript function showID( ) that toggles the Div to 'display:block' and all other DIVs to 'display:none' (or, preferably, remembers which was displayed most recently and just hides that one). http://www.netlobo.com/div_hiding.html is a good example of how to do that (hide/show). It's a bit cumbersome, and in general probably easier to manage 101 pages than to have all this in one page, but if you really like one file it's the easiest way I know of to do it.

-Joe

On Mon, Sep 27, 2010 at 2:59 PM, Viel, Kevin <kviel@sjha.org> wrote:

> > ________________________________________ > > From: Joe Matise [mailto:snoopy369@gmail.com] > > Sent: Monday, September 27, 2010 12:50 PM > > To: Viel, Kevin > > Cc: SAS-L@listserv.uga.edu > > Subject: Re: numerous HTML files to one > > > > I am a bit confused, probably largely by your description of .GIF files > as > HTML files. HTML files are the files that describe how/where to > display > > the GIF files (GIF = graphics interchange format, ie, image). Am I > > correctly understanding that you have many GIFs on your local drive, and > > want to create a page with links to each of thise images? I think you > > could trivially write a SAS program to do so; read in the directory > > listing with a pipe of dir *.gif into a dataset, getting the fully > > qualified filenames as a variable, and then outputting > > cats('<a href=',filename,'>',filename or some title,'</a>') > > either just as a list of links, or in a table or something if you want it > > prettier. Output that to a .html page and then open it in > > Firefox/IE/whatever. > > > > Is that what you're looking for, or am I completely misunderstanding? > > Joe, > > Thanks. > > I have thousands of gifs. I used an HTML page to display them. I put the > anchors into the cells of a table: > > /* ID_Locus.HTML */ > > <html> > <body> > <table border='0'> > <tr> > <td><img src="C:\GIF1.gif " height="300" width="600"/></td> > <td><img src="C:\GIF2.gif " height="300" width="600"/></td> > </tr> > <tr> > <td><img src="C:\GIF3.gif " height="300" width="600"/></td> > <td><img src="C:\GIF4.gif " height="300" width="600"/></td> > </tr> > </table> > </body> > </html> > > I also have a summary report. Each row of this report is a distillation > of the interpretation of these gifs. > > I made each item (row) an anchor pointing to the page (ID_Locus.HTML) of > gifs. > > If I have 10 subjects and 10 items, I created 100 HTML pages of gifs. > This results in 101 separate HTML files. I was wondering if I could not > make one file, with 101 "pages". > > Maybe I am severely abusing HTML? Perhaps a PDF document would not be > appropriate? However, I like the stateless property of a HTML page; I might > have 8 supporting gifs for one observation, but only 2 for another... > > Thanks, > > Kevin > > PS When I move to actually web access, this might be moot. Until then, I > have investigators who want to see the data. > > > > > Kevin Viel, PhD > Senior Research Statistician > Patient Safety & Quality > International College of Robotic Surgery > Saint Joseph's Translational Research Institute > > Saint Joseph's Hospital > 5671 Peachtree Dunwoody Road, NE, Suite 330 > Atlanta, GA 30342 > > (678) 843-6076: Direct Phone > (678) 843-6153: Facsimile > (404) 558-1364: Mobile > kviel@sjha.org > Confidentiality Notice: > This e-mail, including any attachments is the > property of Catholic Health East and is intended > for the sole use of the intended recipient(s). > It may contain information that is privileged and > confidential. Any unauthorized review, use, > disclosure, or distribution is prohibited. If you are > not the intended recipient, please delete this message, and > reply to the sender regarding the error in a separate email. >


Back to: Top of message | Previous page | Main SAS-L page