what is the replacement for window.showModalDialog in mozilla.

A

anand basha

Hi !

what is the replacement for window.showModalDialog in mozilla.
The code was given below


</style>
<script language="javascript" type="text/javascript">
var v_act=0;
var v_ses="<%=session.getId()%>";

function fnOpenUrl(url,idx)
{

//opener.fnAction(url,idx);
if(idx<0)
{
if(v_act==0)
window.close();
else
{ var
sFeature="dialogHeight:275px;dialogWidth:430px;scroll:yes;status:no;resi
zable:no;help:no;";
var
v_url=window.showModalDialog("<%=response.encodeURL("../message.jsp")%>?
h_idx="+idx+"&h_ses="+v_ses,window,sFeature);

}

}
else if(url=="jw")
{

var
sFeature="dialogHeight:275px;dialogWidth:430px;scroll:yes;status:no;resi
zable:no;minimize:yes;help:no;";
var
v_url=window.showModelessDialog("<%=response.encodeURL("../jumpwindow.js
p")%>?h_idx="+idx+"&h_ses="+v_ses,window,sFeature);


}
else if(url=="hlp")
{
var
sFeature="dialogHeight:340px;dialogWidth:500px;scroll:yes;status:no;resi
zable:no;help:no;";
var
v_url=window.showModalDialog("<%=response.encodeURL("../wr_about.html")%
?h_idx="+idx+"&h_ses="+v_ses,window,sFeature);

}
else if(idx=="W0056")
{
var
sFeature="Height=525,Width=800,left=0,top=0,resizable=yes,status=yes,scr
ollbars=yes,alwaysRaised=yes,dependent";
var
v_url=window.open("<%=response.encodeURL("../controller.jsp")%>?h_idx="+
idx+"&h_ses="+v_ses,"","");

}
}
function DisableContextMenu(e){return false;}
//document.oncontextmenu = DisableContextMenu;
</script>
<%
String ls_region=(String)session.getValue("so_region");
if(ls_region==null)ls_region="";
else
ls_region=ls_region.substring(ls_region.indexOf("=")+1);
%>

<title>Performance Series - <%=ls_region%> - [Navigator]</title>
</head>


<%
boolean lbl_tool=true;
boolean lbl_tab=false;
boolean lbl_nav=false;
boolean lbl_jump=true;
boolean lbl_usrcls=true;
boolean lbl_note=false;
boolean lbl_audit=false;
boolean lbl_select=false;
boolean lbl_goto=false;
boolean lbl_prior=false;
boolean lbl_next=false;
boolean lbl_clear=false;
boolean lbl_close=true;
boolean lbl_print=true;
boolean lbl_saveas=false;
boolean lbl_exit=true;
boolean lbl_hlp=true;

%>
<%@ include file="../header.jsp" %>
<%@ include file="../leftmenu.jsp" %>

<iframe id='tv_navigator' name='tv_navigator' SRC=''
STYLE='position:absolute;left:166;top:93;width:602;height:415;
BORDER-STYLE:solid;BORDER-width:1px;' frameborder=0>
</iframe>
<form name=navfrm
action="<%=response.encodeURL("wm_navigatortv_navigator.jsp")%>"
method=post target="tv_navigator">
</form>
</body>
</html>
<script>
function fnLoadTree()
{
navfrm.submit();

}
function fnExit()
{
fnVbMsg("This will end your Performence Series
session.","vbquestion+vbOKCancel","Performence Series Message")
}
function fnCloseParent()
{
try{
//opener.parent.close();
window.close();
}
catch(e){ window.close();}
}
function fnOver(obj)
{
try{
if(obj.className=="tdenable")
obj.style.textDecoration="underline";
}
catch(Exception){}
}

function fnOut(obj)
{
//if(obj.className=="tdenable")
obj.style.textDecoration="none";
}

function fnMainOver(obj)
{

obj.style.textDecoration="underline";
}

function fnMainOut(obj)
{
obj.style.textDecoration="none";
}

document.onLoad=fnLoadTree();
document.onbeforeunload=fnExit;

</script>

<script language=vbs>
sub fnVbMsg(strmsg,buttype,strtitle)
'g_msgflg=1
if(buttype="vbexclamation+vbOK") then
msgbox strmsg,vbexclamation+vbokonly,strtitle
elseif (buttype="vbquestion+vbOK") then
msgbox strmsg,vbquestion+vbokonly,strtitle
elseif (buttype="vbstopsign+vbOK") then
msgbox strmsg,vbcritical+vbokonly,strtitle
elseif (buttype="vbinformation+vbOK") then
msgbox strmsg,vbinformation+vbokonly,strtitle
elseif (buttype="vbquestion+vbYesNo") then
mesg=msgbox(strmsg,vbquestion+vbYesNo+vbDefaultButton1,strtitle)
if (mesg=6) then 'IF YES
fnitemYesNO()
end if
elseif (buttype="vbquestion+vbOKCancel") then
mesg=msgbox(strmsg,vbinformation+vbOkCancel+vbDefaultButton1,strtitle)
if (mesg=1) then
fnCloseParent()
else

end if
else
msgbox strmsg,vbokonly,strtitle
end if
'g_msgflg=0
end sub

</script>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top