[WEB4LIB] RE: Help! with JavaScript

Thomas Dowling tdowling at ohiolink.edu
Mon Aug 24 17:43:39 EDT 1998


MSIE has had an atrocious track record of screwing up on MIME types, and
it's possible that some users will not see the image if their browser
doesn't get a "file" ending in .jpg.  This is one of MSIE's worst
shortcomings.

One hack you can try is to have the script accept, but then throw away, a
PATH_INFO environment variable.  With the right aliases, this would look
like '<img src="/rotate/image/foo.jpg" alt="Image randomly selected with
your mind in mind">'.  The script is "image" and the "foo.jpg" part is
ignored, but the result is to make the script invisible to your users.

Thomas Dowling
OhioLINK - Ohio Library and Information Network
tdowling at ohiolink.edu


> -----Original Message-----
> From: web4lib at webjunction.org
> [mailto:web4lib at webjunction.org]On Behalf Of Michael Squires
> (michael)
> Sent: Monday, August 24, 1998 5:26 PM
> To: Multiple recipients of list
> Subject: [WEB4LIB] RE: Help! with JavaScript
>
>
> Why not do this a cgi-bin? That way you don't care what the browser is?
>
> I've seen this done:
>
> 	- on your html page (e.g., "index.html") put your image tag as
> follows:
> 	<img src="/cgi-bin/rotating-image" ....>
> 	- write your script to pick a random image and return it
>
>
>
> Michael Lee Squires
> Digital Library Champion
>
>
>
> > -----Original Message-----
> > From: Walter Minkel [mailto:walterm at nethost.multnomah.lib.or.us]
> > Sent: Monday, August 24, 1998 1:54 PM
> > To: Multiple recipients of list
> > Subject: [WEB4LIB] Help! with JavaScript
> >
> >
> > Oh, all-wise folks-- Multnomah County Library is working on a
> > new website
> > design. As part of the design, we wanted to include a JavaScript that
> > would select a .jpg file at random from a folder of photos
> > and place it on
> > the page. We found one JavaScript example in a book, but it
> > only seems to
> > work in 4.0x browsers. Is there a way to get it to work in 3.0x
> > Java-capable browsers? The page is located at
> > <http://www.multnomah.lib.or.us/~walterm/iface/>. Any help/advice that
> > anyone can give us is welcome. 10-Q, W
> >
> > Walter Minkel, School Corps Technology Trainer
> > Multnomah County Library, 205 NE Russell St., Portland, OR 97212
> > Voice (503)736-6002; fax (503)248-5441;
> > walterm at nethost.multnomah.lib.or.us
> > ==============
> > Look! A Toyota! Kool! --Palindrome of the Month
> >
>



More information about the Web4lib mailing list