Link to home
Start Free TrialLog in
Avatar of LeanMoreTryMore
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(DialogueFile,"","center=yes;dialogWidth=600pt;dialogHeight=400pt;scroll=yes");
  }
}
Avatar of iscode
iscode

Here you can see the Parameters for showModalDialog hope it helps you out
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/obj_window.asp
<INPUT TYPE="button" VALUE="Launch Window" onClick="if (window.showModalDialog) { window.showModalDialog('modalurl.html', window) } else { alert('This method is only supported by Internet Explorer 4 and above.') }">
Avatar of LeanMoreTryMore

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
ASKER CERTIFIED SOLUTION
Avatar of iscode
iscode

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
LeanMoreTryMore

just notice I sent showModelessDialog
 change it to showModalDialog :)

hope this helps
iscode
I want only Vertical Scrolbar with showModalDialog.

Please help.