?
Solved

How do I open a html document using showModalDialog with scroll bar

Posted on 2005-05-03
6
Medium Priority
?
1,946 Views
Last Modified: 2008-01-16
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");
  }
}
0
Comment
Question by:LeanMoreTryMore
  • 4
6 Comments
 
LVL 6

Expert Comment

by:iscode
ID: 13923656
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
0
 
LVL 6

Expert Comment

by:iscode
ID: 13923708
<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.') }">
0
 

Author Comment

by:LeanMoreTryMore
ID: 13923950
Very thank iscode.
scroll bar appeared. but ONLY vertical bar
I want both vertical bar and horizontal bar.
any idea i can do it
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 6

Accepted Solution

by:
iscode earned 2000 total points
ID: 13923977
you might like this too

<script type="text/javascript">
<!--
function doDialog(){
var x=window.showModelessDialog('page.htm','','dialogHeight: 200px; dialogWidth: 400px;  edge: Sunken; center: Yes; help:No; resizable: Yes; status: Yes; scroll:yes')
}
//-->
</script>

<a href="javascript:doDialog()">Dialog</a>
0
 
LVL 6

Expert Comment

by:iscode
ID: 13924004
LeanMoreTryMore

just notice I sent showModelessDialog
 change it to showModalDialog :)

hope this helps
iscode
0
 

Expert Comment

by:BabarZaman
ID: 22447757
I want only Vertical Scrolbar with showModalDialog.

Please help.
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question