showModalDialog, IFRAMES, and document titles

  • Thread starter Thread starter PeeBee
  • Start date Start date
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.
 
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.
 

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

Back
Top