Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
inet
active_desktop
active_scrptng
asp.components
asp.db
asp.general
comctl32
comp.packaging
components.dev
dbweb
dhtml_editing
docobjects
html_authoring
html_objmodel
iis
iis.ftp
iis.security
iis.smtp_nntp
indexserver
misc
mshtml_hosting
scripting.jscript
scripting.vbscript
sdk_setup
shell_objmodel
urlmonikers
webbrowser_ctl
wininet
  
 
date: Mon, 14 Jul 2008 13:25:01 -0700,    group: microsoft.public.inetsdk.html_authoring        back       


iFrame with an Alert Message Box   
In my web-based training piece delivered in IE 6 or 7, the user clicks a 
button that opens a new IE window displaying a Word document.  On top of the 
Word document, I want an alert message box to appear.

Currently, the training piece runs some javascript that opens the new IE 
window using the showModalDialog method.  This method opens an html file in 
the new window and an iFrame in the html file refers to the Word document.  
This works fine.  But I'm having trouble getting the alert message box to 
appear on top of the Word document.  Currently, the html code is this:

<html>
<head>
<title>Brand Name List
</title>
<SCRIPT LANGUAGE="JavaScript">
function MsgBox() {
alert ("hello") }
</SCRIPT>
</head>
<body>
<iframe src="brand_name_list.doc" width="100%" height="100%" marginwidth="0" 
marginheight="0" scrolling="no" frameborder="0">
</iframe>
<script language="JavaScript">
  MsgBox();
</script>
</body>
</html>

With this code, the alert message box appears, first.  After closing it, the 
Word document appears.  How can I get the Word document to appear first?

Thanks.

JBA
date: Mon, 14 Jul 2008 13:25:01 -0700   author:   JBA

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us