cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Launching Epic Editor 5.2 through javascript on a web client

murtazamasood
1-Newbie

Launching Epic Editor 5.2 through javascript on a web client

I am trying to launch Epic Editor 5.2 through javascript on a IE 6 client by creating an activex object of the application and passing it the path to the xml file that is to be opened. Has anyone succeeded in doing this before? Any input is well appreciated. My code is pasted below... Thanks function checkTags(app, doc, tagname) { var tags = doc.getElementsByTagName(tagname); for(i=0; i<tags.length; i++) { app.alert(tagname); //ok } } function myTest() { var epic = WScript.CreateObject("Epic.Application"); var doc = epic.openDocument("c:\\temp\\junk.xml"); // <=== use XML epic.alert("doc root " + doc.documentElement); // <=== test checkTags(epic, doc, "TEST-TAG"); // <=== see if doc is loaded OK //============================================== // new codes to visualize the Editor var win = epic.activeWindow; if (null != win) { epic.alert(win.width + "," + win.height); var isVisible = win.visible; // false if (!isVisible) { //win.activate(); win.show(); } } // end of new codes //============================================== epic.alert("pause epic"); // <==== I can see the Editor but no junk.xml doc.Close() epic.Quit() } // Run when sourced. myTest()
0 REPLIES 0
Announcements