Prevent Closing of IFRAME
-
Dear All, In my web application, I have a IFRAME in a web page. When the user previews a document it is loaded in the IFRAME. When the user places the cusrsor outside the IFRAME in the page and presses "ESC" key, it closes the IFRAME. Can any one tell me how to get rid of this issue. Thanks a lot in advance
Best Regards, M. J. Jaya Chitra
-
Dear All, In my web application, I have a IFRAME in a web page. When the user previews a document it is loaded in the IFRAME. When the user places the cusrsor outside the IFRAME in the page and presses "ESC" key, it closes the IFRAME. Can any one tell me how to get rid of this issue. Thanks a lot in advance
Best Regards, M. J. Jaya Chitra
M. J. Jaya Chitra wrote:
When the user places the cusrsor outside the IFRAME in the page and presses "ESC" key, it closes the IFRAME.
You are using any div for place the IFrame? Can you please show us the code?
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article
-
M. J. Jaya Chitra wrote:
When the user places the cusrsor outside the IFRAME in the page and presses "ESC" key, it closes the IFRAME.
You are using any div for place the IFrame? Can you please show us the code?
Abhijit Jana | Codeproject MVP Web Site : abhijitjana.net Don't forget to click "Good Answer" on the post(s) that helped you. View My Latest Article
Dear Jana, Yes it is inside the div tag only below is the code for the same:
<div id="divPDF" runat="server" visible="false">
<iframe id="PDFframe" runat="server" style="height: 410px; width: 100%; overflow: auto;"
frameborder="0" scrolling="auto"></iframe>
</div>The code behind is:
divFilter.Visible = false; divPDF.Visible = true; lnkBackToFilters.Visible = true; PDFframe.Attributes\["src"\] = "ReportPDF.aspx";
Best Regards, M. J. Jaya Chitra