JRS: In article < .com>
, dated Sat, 15 Oct 2005 22:14:14, seen in news:comp.lang.javascript,
<> posted :
>> I cannot easily experiment, as the IE>4 machine is a mile away.
>>
>> What's the explanation, and the suggested fix?
>
>Since I have several browsers installed I checked your mentioned page
>and button on several. My SBC/Yahoo DSL browser(just a modified IE6)
>shows the placement problems you mention. The latest Opera displays the
>table correctly. However the latest Mozilla family browsers(Mozilla,
>Firefox, and Netscape) only give some of the top headings when you
>click the button. The progress bar halts at about 1/2 way, and does not
>move and output the bulk of the table, at least for the 3 minutes I
>waited.
None of the script seems likely to hang the system; the loop structures
are quite simple.
> Netscape 4.8 refuses to download your page at all and gives an
>alert with the message "File include1.js end fault, RSVP!".
Well, you've done the RSVP. That message means that include file
include.js is only partially loaded (if it had not loaded at all, you'd
have got a 'top fault').
The only buttons that should take more than a second or so on any PC
less than a decade old are the Timing ones, which have warnings, and the
tests when over a big range of years.
> When you OK
>the alert, the browser goes down. This likely is of little importance
>since the Netscape 4.8 is all but dead in most countries.
>
>Your page is fairly complicated and you use a style considerably
>different from what I use, so I do notnow have time to attempt to
>determine exactly what is going on. I now do nearly all positioning
>with CSS , often using script to calculate the CSS positioning as I did
>in the full year calendar display output for my perpetual calendar. In
>cases that would require a document.write in javascript, I now have to
>do that portion of the code in php on the server,
That means that the page cannot be executed independently of the Net,
which I want to avoid.
> as document.write can
>not be processed in a true html 1.1 page served as
>application/xhtml+xml, which is parsed as XML. A php include at the top
>of the php page converts the code to html 4.01 strict for outmoded
>browsers, such as the IE6, that will not accept the mentioned mime
>type.
>
>Of course, you only mentioned IE browsers, so what your page does on
>other browsers may or may not be of interest to you.
Well, I'd like it to be OK in all, or all after Version 4 level.
The output should look essentially, but not exactly, like that in the
Church of England Book of Common Prayer and in the (British) Calendar
Acts Annexes, and in Halsbury's Laws of England - but reversed left-to-
right. For those without these books (I only have the first), there's a
pure-HTML (non-reversed) version in <URL:
http://www.davros.org/misc/easter.html>, headed TABLE III.
I've now added code for a dot at the beginning of each line, and other
dots where necessary to maintain alignment. If that looks good in IE
5/6, I intend to replace them by or actual spaces.
.. 28 17 6 25 14
.. 29 18 7 26 15
.. 0 19 8 27 16
----------------
.. 1 20 9 28 17
.. 2 21 10 29 18
.. 3 22 11 0 19
.... ...
I tried saving the generated HTML and using TIDY on it. There is
objection to <pre>...<fieldset> so I've changed it (in Table IIIa) to
<fieldset><pre> which could help. Alas, TIDY now complains about <hr>
in <pre>, but changing to </pre><hr><pre> spreads the layout vertically
- changing <hr> to a blank line is OK. Other Tables also dealt with.
Thanks for looking.
--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://www.jibbering.com/faq/> JL/RC: FAQ of news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.