Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Title of a ModelDialog window

Posted on 2008-06-13
5
Medium Priority
?
387 Views
Last Modified: 2008-06-26
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.value;
    var jcfield2 = document.all.txtfield2.value;
    var jcString = "PageModelDialog.asp?qsfield1=" + jsfield1 + "&qsfield2=" + jcfield2;
    window.showModalDialog(jcString, "",
                  "dialogHeight: 545px; dialogWidth: 700px; status: no;");
     window.location.href = "Page1.asp?qsfield="+jcVacnyID;
}                  
'---------------------------------------------------------------
'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/hrmenu.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_appPrescreen.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:onEvent(this.name, 'OnClick')"  <%=ldisabled%>  >
      </td>
</tr>
</table>
0
Comment
Question by:lina06
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 21787341
Look at and provide us the browser source for the page with the problem.  You can see the browser source by right clicking on the web page and choosing View Source.  Let me know if you have a question.

bol
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 21787666
I would think there is something in "  'some code  " that does that.

0
 

Author Comment

by:lina06
ID: 21792587
I cannot view the source for this page.  It is a ModelDialog window.  Correct?
0
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 21793546
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
0
 

Accepted Solution

by:
lina06 earned 0 total points
ID: 21812037
I found a bug in my code:
It was like this:
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<link rel="stylesheet" href="../common/style/hrmenu.css" type="text/css">
<title>Candidate Prescreening Report </title>
 

I modified my code to this:
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<title>Candidate Prescreening Report </title>
<link rel="stylesheet" href="../common/style/hrmenu.css" type="text/css">
0

Featured Post

The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses how to create an extensible mechanism for linked drop downs.
Originally, this post was published on Monitis Blog, you can check it here . Websites are getting bigger and more complicated by the day. Video, images and custom fonts are all great for showcasing your product or service. But the price to pay in…
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…

664 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question