Solved

Title Bar showing unwanted information after executing window.open

Posted on 2004-09-10
6
166 Views
Last Modified: 2013-12-24
I'm working on a system that I want to control what's displayed on the Title Bar.  I have a two CFMX servers and the "Title Bar" repsonds differently on each system with the exact same source.  Both system are CFMX 6.1.  After reviewing samples below, I'd like to know why Server2 is showing extra information on the Title Bar.  Any comments appreciated!  Thanks, sulzener

<!--- Source that opens the Window --->
<cfoutput>
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('labEntry.cfm?rn=#Session.RunNumber#&pn=#Session.ProdNumber#&ud=#Session.UserDesc#&loc=#Session.LabLoc#',
                  '#Session.RunNumber#','location=no,resizable=yes,scrollbars=yes')
-->
</SCRIPT>
</cfoutput>            

<!--- This is at the top of labEntry.cfm --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title><cfoutput>
Run No:&nbsp;#url.rn#&nbsp;&nbsp;Product:&nbsp;#url.pn#&nbsp;
</cfoutput></title></head></html>

<!--- How "Title Bar" displays on Server1 --->
Run No: 35000 Product: PRD123456789 - Microsoft Internet Explorer

<!--- How "Title Bar" displays on Server2 --->
http://localhost - Run No: 35000 Product: PRD123456789 - Microsoft Internet Explorer
or
http://192.168.0.7 - Run No: 35000 Product: PRD123456789 - Microsoft Internet Explorer
0
Comment
Question by:sulzener
  • 3
  • 2
6 Comments
 

Assisted Solution

by:osr3v
osr3v earned 50 total points
ID: 12033452
I believe this is actually an issue with IE.  You may be able to fix it by turning off the "Use automatic configuration script" in Internet Options.

Goto Tools | Internet Options.
Click the Connections tab.
Double-click the connection that you are using.
In the Automatic configuration section, click the "Use automatic configuration script" box.
Click Okay.
0
 
LVL 17

Accepted Solution

by:
anandkp earned 175 total points
ID: 12041497
Set the title in ur 'labEntry.cfm' page

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<HTML>
<HEAD>
      <TITLE>Set the Required information to be displayed here</TITLE>
</HEAD>

<BODY>
      <!--- code for the page 'labEntry.cfm' is here --->
</BODY>
</HTML>

lemme know ...
0
 

Author Comment

by:sulzener
ID: 12043575
osr3v and anandkp,
I tried both your suggestions, neither worked.  The only diff between anandkp's suggestion and my posted source was in the top section.  anandkp had "HTML 4.01 Transitional" and I had "HTML 4.0 Transitional".  What's weird is that I was able to narrow the pbroblem down a little more.

When I open the window using the source directly below, the unwanted information disappears and the Title Bar shows us like this:
"Run No: 35000 Product: PRD123456789 - Microsoft Internet Explorer"
The problem with this method is the "Address Bar" appears. I do not want this because
it will allow the user to redirect the browser to another link.

<!--- This script opens the windows with "location=yes" --->
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('labEntry.cfm?rn=#Session.RunNumber#&pn=#Session.ProdNumber#&ud=#Session.UserDesc#&loc=#Session.LabLoc#',
               '#Session.RunNumber#','location=yes,resizable=yes,scrollbars=yes')
-->
</SCRIPT>


When I open the window using the source directly below, the unwanted information RE-appears and the Title Bar shows us like this:
"http://localhost - Run No: 35000 Product: PRD123456789 - Microsoft Internet Explorer"
I need to make sire "location=no" so the Address Bar soes not show up.

<!--- This script opens the windows with "location=no" --->
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('labEntry.cfm?rn=#Session.RunNumber#&pn=#Session.ProdNumber#&ud=#Session.UserDesc#&loc=#Session.LabLoc#',
               '#Session.RunNumber#','location=no,resizable=yes,scrollbars=yes')
-->
</SCRIPT>

ANY COMMENTS ARE APPRECIATED!


 
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
LVL 17

Expert Comment

by:anandkp
ID: 12051703
I dont see how the code can cause this [unless u have the "Title" created dynamically]
what version of IE are u using ? Did u try Upgrading it [just a thought :)]
0
 

Author Comment

by:sulzener
ID: 12053253
anankp,  I am using IE 6.0 and have SP2 installed.  It also occurs with other users IE browsers who are at lower release levels.  I am using the open.window command to open the window.  Is that considered a dynamic open?  Also, keep in mind that this exact same source works properly on Server1 and not on Server2.  For the environment this system will be functioning in, this is not a critical issue.  I just thought it was really odd that Server2 responded this way so I posted the question. I am going to re-installed the CF server on Server2 for other reasons, I will see if this changes anything!
0
 

Author Comment

by:sulzener
ID: 12851543
Just wanted to let everone know I finally resolved my issue.  Apparently this problem I was having was a result of SP2 install.  Here is the soloution to removing the domain from showing in the TITLE BAR after SP2 upgrade:
update HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_WINDOW_RESTRICTIONS\iexplore.exe
change value to 0
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
CFFILE upload help 98 156
listing all functions in JavaScript 19 199
Domino Website - Redirection 12 74
Point a domain to a 4rd party web host without changing nameservers 2 27
A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now