Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: Re: how to remove the default tile in window dialog box


Message #1 by "Dan Carlson" <dan@d...> on Tue, 4 Feb 2003 19:23:20
Hi!

I don't have a great answer to your question, but if you've discovered a 
better workaround, I'd sure appreciate learning what you've done. 

What we've done is to insert enough blanks (&nbsp) in front of the "-- Web 
Page Dialog" text so that the text is pushed as far right as possible. One 
downside to this approach is that the text is not pushed completely out of 
view; there's always three little dots displayed. Not an elegant solution, 
but it's the best we've come up with to this point. 

Anyway, I'd like to know if you've run across something better. Thanks!

Best Regards, 
--Dan--





> This message is in MIME format. Since your mail reader does not 
understand
> this format, some or all of this message may not be legible.
> 
> ------_=_NextPart_001_01C0978C.54513E40
> Content-Type: text/plain;
> 	charset="iso-8859-1"
> 
> 
> if I open a modal dialog box
> ...
> window.showModalDialog( "Dialog.html", DialogData,sFeatures );
> 
> in Dialog.html it has:
> 
> <html xmlns:InfoTrak="1">
> <head><TITLE>MyTile</TITLE>
> 
> but the dialog box shows the title as "MyTitle--Web Page Dialog".
> How to remove the default part?
> 
> Thanks fro your help!
> 
> ------_=_NextPart_001_01C0978C.54513E40
> Content-Type: text/html;
> 	charset="iso-8859-1"
> 
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
> <HTML>
> <HEAD>
> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
> <META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
> <TITLE>how to remove the default tile in window dialog box</TITLE>
> </HEAD>
> <BODY>
> <BR>
> 
> <P><FONT SIZE=2>if I open a modal dialog box</FONT>
> <BR><FONT SIZE=2>...</FONT>
> <BR><FONT SIZE=2>window.showModalDialog( &quot;Dialog.html&quot;, 
DialogData,sFeatures );</FONT>
> </P>
> 
> <P><FONT SIZE=2>in Dialog.html it has:</FONT>
> </P>
> 
> <P><FONT SIZE=2>&lt;html xmlns:InfoTrak=&quot;1&quot;&gt;</FONT>
> <BR><FONT SIZE=2>&lt;head&gt;&lt;TITLE&gt;MyTile&lt;/TITLE&gt;</FONT>
> </P>
> 
> <P><FONT SIZE=2>but the dialog box shows the title as &quot;MyTitle--Web 
Page Dialog&quot;.</FONT>
> <BR><FONT SIZE=2>How to remove the default part?</FONT>
> </P>
> 
> <P><FONT SIZE=2>Thanks fro your help!</FONT>
> </P>
> 
> </BODY>
> </HTML>
> ------_=_NextPart_001_01C0978C.54513E40--
Message #2 by "Nick Lucas" <nickl@p...> on Wed, 12 Feb 2003 10:11:02
It's not possible to remove the "--Web Dialog" message because the browser 
adds it in because of "security issues". I think this is crazy when the 
browser is not being used on the Internet. This means explaining to the 
end user (customer) what the message means and then they ask why you can't 
remove it. In England we also have to explain why Dialogue is not spelt in 
the English way. My work round is the following:

<HTML>
<HEAD>
<SCRIPT LANGUAGE="Javascript">
var a ="  Your title ";
var b = '';
for (count=0;count < 50;count++){
b=b + '.';
}
a=a+b;
document.title = a;
</SCRIPT>
</HEAD>
<BODY>

This adds a load of full stops after the title, it doesn't look quite so 
bad in practice and pushes the web dialog out of the title bar. The space 
after the last word in your title gives a better appearance than having 
the full stops starting immediately after the word.

  Return to Index