LeanMoreTryMore
asked on
How do I open a html document using showModalDialog with scroll bar
The user create a word document and save it as a html format. Eg. CompanyPolicy.htm
In our ASP web page, I use showModalDialog to open the html document and set scroll= yes. But it does not show the scroll bar. Please help. this is urgent.
My code below.
function OpenDialogue(iDialogueFile ) {
if (window.showModalDialog)
{
var sRtn;
var = "CompanyPolicy.htm"
sRtn = showModalDialog(DialogueFi le,"","cen ter=yes;di alogWidth= 600pt;dial ogHeight=4 00pt;scrol l=yes");
}
}
In our ASP web page, I use showModalDialog to open the html document and set scroll= yes. But it does not show the scroll bar. Please help. this is urgent.
My code below.
function OpenDialogue(iDialogueFile
if (window.showModalDialog)
{
var sRtn;
var = "CompanyPolicy.htm"
sRtn = showModalDialog(DialogueFi
}
}
<INPUT TYPE="button" VALUE="Launch Window" onClick="if (window.showModalDialog) { window.showModalDialog('mo dalurl.htm l', window) } else { alert('This method is only supported by Internet Explorer 4 and above.') }">
ASKER
Very thank iscode.
scroll bar appeared. but ONLY vertical bar
I want both vertical bar and horizontal bar.
any idea i can do it
scroll bar appeared. but ONLY vertical bar
I want both vertical bar and horizontal bar.
any idea i can do it
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
LeanMoreTryMore
just notice I sent showModelessDialog
change it to showModalDialog :)
hope this helps
iscode
just notice I sent showModelessDialog
change it to showModalDialog :)
hope this helps
iscode
I want only Vertical Scrolbar with showModalDialog.
Please help.
Please help.
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/obj_window.asp