Knowledgebase Home Page  >  RapidSpell Web Java
Search the Knowledge Base
How can I use modal dialog windows with Firefox?
https://keyoti.com/kb/Default.aspx?ToDo=view&questId=156&catId=45

Options

Print this page
Email this to a friend
Internet Explorer is the only browser that supports modal windows of any kind.  If you need to use modal windows when possible, the following code will activate modal mode in IE, and regular mode in FF etc.
 
 
1. Add this code to the JSP page holding RapidSpellWebLauncher

<%
String userAgent = request.getHeader("user-agent");
boolean modal = userAgent.indexOf("MSIE")>-1;
%>
 
 
2. Then set the modal property like this
 
<RapidSpellWeb:rapidSpellWebLauncher
id="rapidSpellWebLauncher1"
rapidSpellWebPage="RapidSpellCheckerPopUp.jsp"
textComponentName="...."
modal="<%=modal%>"
/>
 
 

Related Questions:

Attachments:

No attachments were found.