I am using a literal on my page which has an html form in it. this literal is displayed when a specific link is clicked, an overlay div is shown on the page and it shows the form on the overlay div. All browsers work fine and exactly as expected, but IE does not show anything on the overlay div i.e. the overlay div appears but is empty. I have tried adding tags to the literal control one by one to see which tag exactly is causing the issue and turned out that all the content (HTML input controls etc.) were shown on the overlay div until the <form>
tag is added in the literal text.
If the literal.Text
property does not have a <form>
tag the content shows up fine in IE as well. But the problem is that I need to have this <form>
inside the literal as i have to post the data back to an external link. When all other browsers are working fine, what could be the issue in IE?
following is the literal content when its set:
formSalesForce.Text = "<div style='clear:both'></div><h2 class='sIFR-replaced1' style='text-align:left'><embed height='20' id='h2heading' width='282' src='frutiger_light.swf' quality='best' flashvars='txt=Document Description&textalign=left&offsetTop=0&textcolor=#878787&hovercolor=#76b404&linkcolor=#87be22&w=282&h=20' wmode='transparent' bgcolor='transparent' sifr='true' type='application/x-shockwave-flash' class='sIFR-flash1' style='width: 282px; height: 20px;'/><span class='sIFR-alternate'>Document Description</span></h2>" + d.DocDescription + "<BR><p>Please fill out the following information so that we can proceed with providing you the link to the document</p><form id='myDocForm' name='myDocForm' action='" + d.DataSubmissionPath + "' method='POST' ><table class='clearBoth' width='45%'><tr><td><input type=hidden name='oid' value='" + d.OID + "'></td><td><input type=hidden name='retURL' value='" + "" + "'></td></tr><tr><td class='formlabel' >First Name*</td><td class='formfield'><input type='text' id='first_name' size='20' maxlength='40' name='first_name'></td></tr><tr><td class='formlabel'>Last Name*</td><td class='formfield'><input type='text' id='last_name' size='20' maxlength='40' name='last_name'></td></tr><tr><td class='formlabel'>Email*</td><td class='formfield'><input type='text' id='email' size='20' maxlength='40' name='email'></td></tr><tr><td class='formlabel'>Work Title</td><td class='formfield'><input type='text' id='work_title' size='20' maxlength='40' name='work_title'></td></tr><tr><td class='formlabel'>Company</td><td class='formfield'><input type='text' id='company' size='20' maxlength='40' name='company'></td></tr><tr><td class='formbuttons'><input type='Button' name='btnsubmit' value='Submit' onclick='showDocPanel();'></td></tr></table></form>"