Me to, I made a very simple test page. I did innerhtml = <input
type=text name=bla> and nothing.
I found a work around. I thought I might share it.
IN IE for windows, you just say innerhtml="<input type=text
name="whatever">"
IN IE for MAC, this is broken into three steps.
1. Write the innerHTML section just like in PC IE
2. Write hidden fields in the document
3. upon saving, send the input fields into the hidden fields, then
send to the result page.
4. On the result page, check the browser and if it is a mac, read the
hidden fields, other wise use the regular names.
EX:
<script>
document.all("insertinfo").innerHTML = "<input type=text
name="txtinfo" id="txtinfo">
function submit_form()
{
if (document.all("txtinfo"))
{
document.all("MAC_txtinfo").value = (document.all("txtinfo").value)
}
document.all("form1").action = "results.asp"
document.all("form1").submit
}
</script>
<form name="form1" method="post">
text<span id="insertinfo" name="insertinfo"></span>
<input type="hidden" name="MAC_txtinfo">
<input type="button" name="submit1" value="submit"
onclick="submit_form();">
</form>
RESULTS PAGE:
dim macchk, info
'This is the servervariables line
if not( instr(1,UCASE(Request.ServerVariables("HTTP_USER_AGENT")),"WINDOWS")
> 1) then
macchk = "mac_"
else
macchk = ""
end if
info = request.form(macchk & "txtinfo")
Note: If you are adding innerhtml to a cell element, you may want to
do a cell.innerHTML = " "; and then cell.innerHTML = "<input type=text
name=whatever>"
> Me to, I made a very simple test page. I did innerhtml = <input
> type=text name=bla> and nothing.
[quoted text clipped - 13 lines]
> > DO NOT get sent with the rest of the form. It works fine on a PC. Can anyone
> > help? Please. This is an important and late bug in a large program.