tu********@yahoo.com wrote:
A Modal Dialog does not allow us to highlight the text content inside
<DIV> tag unless I use a <textarea> tag to display that text content.
However, the situation of my software makes it impossible to use
<textarea> and Modeless dialog. I am really stuck!!!
Is there any trick to make <DIV> or <SPAN>'s content be selectable in a
Modal dialog?
Perhaps if you put your dialog page in an iframe e.g. newDialog.html is
<html>
<head>
<title>dialog title</title>
<style type="text/css">
html, body { margin: 0; padding: 0; }
</style>
</head>
<body>
<iframe width="100%" height="100%" src="originalDialog.html">
</iframe>
</body>
</html>
then inside the iframe text selection is possible if call
window.showModalDialog('newDialog.html')
but I haven't tried that.
It seems like a bug if text selection in the dialog doesn't work, you
might want to search the MS knowledge base if that is known and
workarounds are suggested.
--
Martin Honnen
http://JavaScript.FAQTs.com/