lina06
asked on
Title of a ModelDialog window
I am using a ModelDialog window in classical ASP application. When the first time the modal dialog displayed, the title of dialog box is displayed correctly as Title Model Dialog Web Page Dialog. When a user clicked on the "btnStart", only
Web Page Dialog.
Please let me know how to resolve this issue. Here is my code.
'------------------------- ---------- ---------- ---------- ------
'Page1.asp
'javascript to open dialog box:
'------------------------- ---------- ---------- ---------- ------
function PrescreenAppl()
{
var jsfield1 = document.all.txtfield1.val ue;
var jcfield2 = document.all.txtfield2.val ue;
var jcString = "PageModelDialog.asp?qsfie ld1=" + jsfield1 + "&qsfield2=" + jcfield2;
window.showModalDialog(jcS tring, "",
"dialogHeight: 545px; dialogWidth: 700px; status: no;");
window.location.href = "Page1.asp?qsfield="+jcVac nyID;
}
'------------------------- ---------- ---------- ---------- --------
'PageModelDialog.asp
'------------------------- ---------- ---------- ---------- ---------
Call MainProcess()
'------------------------- ---------- ---------- ---------- -----
Public Sub MainProcess
IF lTrigerName = "btnStart" AND lTriggerEvent = "OnClick" THEN
Call btnStart_OnClick()
End IF
End Sub
Private Sub btnStart_OnClick
'some code
End Sub
<HTML>
<HEAD>
<link rel="stylesheet" href="../common/style/hrme nu.css" type="text/css">
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<title>Title Model Dialog </title> 'Can see this tiltel only when the window is displayed the first time
<base target="_self">
<script language="javascript">
function onEvent(triggerName, triggerEvent)
{
document.forms(0).submit() ;
}
</script>
</HEAD>
<BODY>
<form name="main" method="post" action="hr5770pc_appPrescr een.asp">
<table class="T1" align="center" border="1" width="100%" height= "100%">
<tr height="10%">
<td width="33%" height = "100%" align="right">
<INPUT type="button" value="<%=lNameStartBtn%>" id=btnStart name="btnStart"
onclick="javascript:onEven t(this.nam e, 'OnClick')" <%=ldisabled%> >
</td>
</tr>
</table>
Web Page Dialog.
Please let me know how to resolve this issue. Here is my code.
'-------------------------
'Page1.asp
'javascript to open dialog box:
'-------------------------
function PrescreenAppl()
{
var jsfield1 = document.all.txtfield1.val
var jcfield2 = document.all.txtfield2.val
var jcString = "PageModelDialog.asp?qsfie
window.showModalDialog(jcS
"dialogHeight: 545px; dialogWidth: 700px; status: no;");
window.location.href = "Page1.asp?qsfield="+jcVac
}
'-------------------------
'PageModelDialog.asp
'-------------------------
Call MainProcess()
'-------------------------
Public Sub MainProcess
IF lTrigerName = "btnStart" AND lTriggerEvent = "OnClick" THEN
Call btnStart_OnClick()
End IF
End Sub
Private Sub btnStart_OnClick
'some code
End Sub
<HTML>
<HEAD>
<link rel="stylesheet" href="../common/style/hrme
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<title>Title Model Dialog </title> 'Can see this tiltel only when the window is displayed the first time
<base target="_self">
<script language="javascript">
function onEvent(triggerName, triggerEvent)
{
document.forms(0).submit()
}
</script>
</HEAD>
<BODY>
<form name="main" method="post" action="hr5770pc_appPrescr
<table class="T1" align="center" border="1" width="100%" height= "100%">
<tr height="10%">
<td width="33%" height = "100%" align="right">
<INPUT type="button" value="<%=lNameStartBtn%>"
onclick="javascript:onEven
</td>
</tr>
</table>
I would think there is something in " 'some code " that does that.
ASKER
I cannot view the source for this page. It is a ModelDialog window. Correct?
sorry I do not understand what you mean
I see
Private Sub btnStart_OnClick
'some code
End Sub
so if that is the code then I do not see anything that can change the title
If the form is submitted inside the modal then it is the
hr5770pc_appPrescreen.asp
that clears the title
I see
Private Sub btnStart_OnClick
'some code
End Sub
so if that is the code then I do not see anything that can change the title
If the form is submitted inside the modal then it is the
hr5770pc_appPrescreen.asp
that clears the title
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
bol