tags:

views:

254

answers:

1

i have written a showmodaldialog() fuction in a jsp file and its working well in firefox but in ie8 its now working,my code is here :

<-----a.jsp------>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"&gt;
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Step Editor</title>
<script language=javascript>
function test() {
var retvalue;
retvalue = window.showModalDialog("index.jsp");

}
</script>

</head>
<body>
<input type=button value=Activity onclick=test()>
</body>
</html>

<--------->

in the above code a.jsp is parent window which is calling index.jsp as child window.

<----index.jsp----->
A: 

use "" in meta tag

Maryam