Problem solved with IExplorer, AppendChild and HTTPS
Posted: Fri Aug 31, 2007 1:33 am
I used the DHTML Calendar in one Web project and I had a little problem with Internet Explorer and HTTPS. Everytime we clicked on the calendar, a popup window (security information) displayed.
Actually, the problem is almost solved in the function initCalendar, at the end of the if(MSIE) block, we have these instructions:
...
document.body.appendChild(iframeObj2);
//// fix for EI frame problem on time dropdowns 09/30/2006
// Added fixed for HTTPS
iframeObj2.src = 'blank.html';
iframeObj.src = 'blank.html';
document.body.appendChild(iframeObj);
But still have a security popup displayed in Internet Explorer.
What I have done, is just changed the sequence of these instructions that become like this:
if(MSIE){
...
//// fix for EI frame problem on time dropdowns 09/30/2006
// Added fixed for HTTPS
iframeObj2.src = 'blank.html';
document.body.appendChild(iframeObj2);
iframeObj.src = 'blank.html';
document.body.appendChild(iframeObj);
The instructions --> iframeObj.src = 'blank.html' <-- must be called before appendChild.
Jacques