Anthony, Bob, et al,
"Amazingly stupid" maybe

. I misread the XMLHttp params. We do have
the 3rd param as "False", so it IS synchronous, and it's in ASP.
Sorry about that!
Having said that though, I guess that I'm even more puzzled about the
rendering problems that we're seeing with Mozilla/Firefox, Netscape 7.2,
and Netscape 8.1. We've been able to workaround the Firefox and
Netscape 7.2 problem by adding some additional "<BR>"s, but the Netscape
8.1 also required switching the rendering engine from "Firefox" to
"Internet Explorer".
I can't post the entire code, but basically we have an ASP page where we
are getting 3 SSIs, for a header, a point-of-contact section, and a footer.
We're basically using the following code (the snippet below is to get
the header.ssi. The "value" var contains the "http://<hostname>" to be
pre-pended to the URL) to get the SSIs:
<%
If value_found = True Then
Dim xml_header
Set xml_header = Server.CreateObject("Microsoft.XMLHTTP")
xml_header.Open "GET", value & "/ssi/header.ssi", False
xml_header.Send 'do the HTTP GET
Dim xyz_header
xyz_header = xml_header.responseText
Response.Write xml_header.responseText
Set xml_header = Nothing
End If
%>
We also have one <DIV> section ahead of the get for the header.ssi, two
<DIV> sections between the code that gets the header.ssi and poc.ssi,
and a <DIV> section after the get for the footer.ssi, i.e., the overall
page looks like:
- <DIV>....</DIV>
- get header.ssi
- <DIV>....</DIV>
- <DIV>....</DIV>
- get poc.ssi
- get footer.ssi
- <DIV>....</DIV>
With the code above for doing the SSI gets, and for Firefox, we were
originally seeing the poc.ssi stuff get rendered AHEAD of the footer.ssi
stuff.
We then added some code to the code that did the get for the poc.ssi, so
it instead looked like:
<%
If value_found = True Then
Dim xml_poc
Set xml_poc = Server.CreateObject("Microsoft.XMLHTTP")
xml_poc.Open "GET", value & "/ssi/poc.ssi", False
xml_poc.Send 'do the HTTP GET
'Now, replace the "/icons/" with "http:<hostname>/icons/"
Dim xyz_poc
xyz_poc = xml_poc.responseText
Response.Write xml_poc.responseText
If InStr(1, browsertype, "MSIE", 1) = 0 Then
Response.Write "<br><br><br><br>"
End If
Set xml_poc = Nothing
End If
%>
This seemed to fix the problem except for Netscape 8.1, but as I said in
my earlier post, this workaround seems a little kludgy (and somewhat
browser-specific). I'd really like to understand exactly what is
causing that rendering problem, and, if possible, come up with a more
elegant, and hopefully more reliable, solution.
Thanks,
Jim