Welcome to WebmasterWorld Guest from 126.96.36.199
Forum Moderators: open
im trying to insert multiple word docs into a html page depending on form submitting . im presuming each doc needs an <object>, or <embed> tag..
im submitting a page, then with JS in the onsubmit of the form i do ..
//set some vars with submitted values
html = these values..;
//was trying this..
any help much appreciated ..
you have to write head and body part with open. but nevertheless for testing purposes for your object tags, this should not be necessary in my opinion.
the rest of the code (just not the embed as you pointed out) looks quite right ;).
ActiveX Documents are embeddable OLE objects that behave more like ActiveX controls than traditional OLE objects. Unlike a normal embedded object, an ActiveX Document is not designed to be a contained object in a larger document. Instead, it is considered a complete document in itself, which is merely being viewed by a viewer (such as Internet Explorer) or is being collected into a single resource with other documents (such as a Binder file).
first of all, you website will only work on windows based systems - no unix, no apple (not even with ie there, in my knowledge, ms cancelled activex integration in mac ie, correct me if wrong).
internet explorer itself is able to open activex documents and - i forgot to wrote it first - a word document can be displayed as activex document like almost any ms office file (.xls, .ppt).
if i follow ms specs, an iframe with an src= attribute with the doc's filename as value should do the trick. feel free to check it out.
var pause = 0;
var wdDialogFileOpen = 80;
var wdApp = new ActiveXObject("Word.Application");
var dialog = wdApp.Dialogs(wdDialogFileOpen);
var button = dialog.Show(pause);