[ List Archives Home ] [ Thread index for 2008 ] [ Date index for 2008 ] [ Author index for 2008 ]


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
For reasons I am not sure of (perhaps something to do with being a beta
site), the work around for the warning in IE when using the sorttable
script does not work for our site. I tried to do an end run around the
issue by putting the following code just before botlogo, so it runs
after the reading history has loaded:



<script type="text/javascript">

var readhistform = document.getElementsByName('PHISTORYFORM')[0];

var sortscript = document.createElement('script');

sortscript.setAttribute('src', '/screens/sorttable.js');

readhistform.appendChild(sortscript);

</script>



It runs in Firefox and Safari, but IE7 tells me "'script' is null or not
an object". The whole reason for changing where/how I call the script is
to get IE to play nice.



Somewhat unrelated, sorttable.js seems to collapse or remove styles from
any th tag that has a span...like the Fines and Holds and Reading
History table headers. When this happens to fines, it makes the first
charged item unreadable, since my link text is white (in the script) and
the background color for that item is beige. We don't need to sort fines
anyway, so if I can get the above working, I might just target certain
tables.



Ideas? I'm not literate in JavaScript, but I am willing to hammer away
at chunks.



Sarah Smith

Systems Supervisor, ssmith at saclibrary dot org

Sacramento Public Library <http://www.saclibrary.org>

828 I Street, Sacramento, CA 95814

Phone (916) 264-2892; Fax (916) 264-2959





--- StripMime Report -- processed MIME parts ---
multipart/alternative
text/plain (text body -- kept)
text/html
---