Advertisement
7_2009-2012 Internet/ Browsers/ HTML #228388

Cross Browser Dialog

Internet Explorer provides showModalDialog to create a modal dialog. However, this function has two drawbacks: 1) It works only in Internet Explorer 2) The dialog cannot submit data to itself and opens a new window instead. This solution solves these problems by: 1) Firefox browser will open a dialog using window.open with “modal=yes” option 2) Internet Explorer submits data to a hidden IFRAME To test add WebForm1.aspx and Dialog.aspx to your VS.NET application compile it and open WebForm1.aspx

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Upload
Original Comments (3)
Recovered from Wayback Machine