T
timjowers
Anyone have a work-around for this. Apparently this is MSFT skunk-
security garbage. You can set stuff into the DIV dynamically but not
if its a <form>...
var buga;
var bugastr="<span> __ form>dummy</form></span>";
function demobug(){
alert( "buga=" + buga );
alert( "bugastr=" + bugastr );
document.getElementById("fromListDivCustInfoPicker").innerHTML =
bugastr;
}
function fixme(self) / "self" is the "this" passed from a DIV
onmouseover
{
self.innerHTML='funtimes'; // works fine
alert( "fun? [" + self.name + "] [" + self.id +"]" );
buga="fromListDivCustInfoPicker"; // this is id of the DIV I used
for testing
self = document.getElementById(buga);
alert( "fine? [" + self.name + "] [" + self.id +"]" );
self.innerHTML='fine tums'; // works fine
bugastr="<span> __ form>dummy</form></span>";
demobug(); // works fine
bugastr="<span><form>dummy</form></span>";
demobug(); // FAILS! FAILS! FAILS. (well, works fine in FF
}
The last line results in IE7 saying:
Error: Unknown runtime error.
When you bring up their debugger it says:
htmlfile:Unkown runtime error.
<div id='fromListDivCustInfoPicker' style="border-color:black;border-
width:5;background-
color:white;visibility:visible;position:absolute;top:250px;left:40px;z-
index:5;width:45%" onmouseover="fixme(this)">
</div>
Its been years since I did any heavy JavaScript and I'm quite
perturbed to see the same sorry junk programming still exists in the
form of IE. Now I remember why I quit doing javascript.You'd think
BSGates would come off some billions and hire some QA. OK, I just
verified in Firefox 3.0.4 and it works properly.
So, anyone have the workaround for dynamically setting a <form> in a
<div> in IE? Is three some whitepaper on these nasty security/bug/
features in IE?
TIA,
TimJowers
security garbage. You can set stuff into the DIV dynamically but not
if its a <form>...
var buga;
var bugastr="<span> __ form>dummy</form></span>";
function demobug(){
alert( "buga=" + buga );
alert( "bugastr=" + bugastr );
document.getElementById("fromListDivCustInfoPicker").innerHTML =
bugastr;
}
function fixme(self) / "self" is the "this" passed from a DIV
onmouseover
{
self.innerHTML='funtimes'; // works fine
alert( "fun? [" + self.name + "] [" + self.id +"]" );
buga="fromListDivCustInfoPicker"; // this is id of the DIV I used
for testing
self = document.getElementById(buga);
alert( "fine? [" + self.name + "] [" + self.id +"]" );
self.innerHTML='fine tums'; // works fine
bugastr="<span> __ form>dummy</form></span>";
demobug(); // works fine
bugastr="<span><form>dummy</form></span>";
demobug(); // FAILS! FAILS! FAILS. (well, works fine in FF
}
The last line results in IE7 saying:
Error: Unknown runtime error.
When you bring up their debugger it says:
htmlfile:Unkown runtime error.
<div id='fromListDivCustInfoPicker' style="border-color:black;border-
width:5;background-
color:white;visibility:visible;position:absolute;top:250px;left:40px;z-
index:5;width:45%" onmouseover="fixme(this)">
</div>
Its been years since I did any heavy JavaScript and I'm quite
perturbed to see the same sorry junk programming still exists in the
form of IE. Now I remember why I quit doing javascript.You'd think
BSGates would come off some billions and hire some QA. OK, I just
verified in Firefox 3.0.4 and it works properly.
So, anyone have the workaround for dynamically setting a <form> in a
<div> in IE? Is three some whitepaper on these nasty security/bug/
features in IE?
TIA,
TimJowers