sulzener
asked on
Title Bar showing unwanted information after executing window.open
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=#Sess ion.ProdNu mber#&ud=# Session.Us erDesc#&lo c=#Session .LabLoc#',
'#Session.RunNumber#','loc ation=no,r esizable=y es,scrollb ars=yes')
-->
</SCRIPT>
</cfoutput>
<!--- This is at the top of labEntry.cfm --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title><cfoutp ut>
Run No: #url.rn# &nb sp;Product : #ur l.pn#  ;
</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
<!--- Source that opens the Window --->
<cfoutput>
<SCRIPT LANGUAGE="javascript">
<!--
window.open ('labEntry.cfm?rn=#Session
'#Session.RunNumber#','loc
-->
</SCRIPT>
</cfoutput>
<!--- This is at the top of labEntry.cfm --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title><cfoutp
Run No: #url.rn# &nb
</cfoutput></title></head>
<!--- 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
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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 :)]
what version of IE are u using ? Did u try Upgrading it [just a thought :)]
ASKER
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!
ASKER
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\SOFTWAR E\Microsof t\Internet Explorer\Main\FeatureContr ol\FEATURE _WINDOW_RE STRICTIONS \iexplore. exe
change value to 0
update HKEY_LOCAL_MACHINE\SOFTWAR
change value to 0
ASKER
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
'#Session.RunNumber#','loc
-->
</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
'#Session.RunNumber#','loc
-->
</SCRIPT>
ANY COMMENTS ARE APPRECIATED!