showModalDialog, IFRAMES, and document titles

P

PeeBee

I have researched the issue of setting the title of a window created
with a call to showModalDialog. I have found numerous articles, but
nothing that answers my particular case (Code abbreviated for
simplicity):


in spawner.aspx -

<script>
window.showModalDialog('dialog.htm');
</script>


in dialog.htm -

<html>
<body>
<iframe src="iframe.aspx"></iframe>
</body>
</html>

in iframe.aspx - not important

----

what script should i stream back to the client from the iframe.aspx
code-behind so that the title of the dialog window is changed at
run-time? i have seen articles that spoke of a bug with dialogs that
prevent DHTML methods for setting the title, but supposedly it can be
set on the server side.

I have yet to see a working example of this.

Thanks for any help you can offer.
 
P

PeeBee

Bill,
thanks for the response. i thought the "server side" approach sounded
odd. here is the article i was referring to when i spoke of the
"server side" solution:

http://support.microsoft.com/default.aspx?scid=kb;en-us;263033

Here is the quote:

"RESOLUTION
To work around this problem, you can use Active Server Pages (ASP)
script or another application server framework to set the title from
the server side. There is no known alternative way to change the title
from client-side script. "


Whatever that means ... you're guess is as good as mine.

Thanks again.
 
W

William F. Robertson, Jr.

What this is saying is when a modal or modeless window is opened, it will
look for the title tag and place that title in the window bar. For IE
dialog boxes, the title can not be changed one the dialog is created.

When it is suggesting "server side", it it suggesting writing out the
<title> tag dynamically before the html is sent to the client's machine and
the dialog processed.

With dialog.htm being your modal page, it doesn't look like you are going to
be able to set the title based on the frame.

bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top