Results 1 to 1 of 1
Thread: Invoking Java Script
- 01-05-2012, 08:04 AM #1
Member
- Join Date
- Oct 2010
- Posts
- 3
- Rep Power
- 0
Invoking Java Script
HI All--
I jave a html page that embeds the Visio Drawing Control as follows
<OBJECT
ID="VisOCX"
CLASSID="CLSID:E4615FA3-23B0-4976-BD3E-D611DDBE330E"
WIDTH="100%"
HEIGHT="100%"
runat="server" >
<PARAM NAME="NegotiateMenus" VALUE="1">
<PARAM NAME="NegotiateToolbars" VALUE="1">
<PARAM NAME="PageSizingBehavior" VALUE="1">
<PARAM NAME="Src" VALUE="D:\scratch\test1.vdx">
</OBJECT>
I have a java script in this HTML as follows
<SCRIPT type= "text/javascript">
function GetVisioOCX() {
return VisOCX;
}
</SCRIPT>
I am opening this HTML using SWT Browser control. Once the document load is completed I want to execute this Java script and get the instance of Visio Drawing control.
I am using Browser.evaluate("return GetVisioOCX()") to invoke this java script.
I am getting following error org.eclipse.swt.SWTException: Return value not valid . I guess this means that return value cannot be converted to Java object and hence this error.
Is there any way I can get the instance of Drawing control by overriding some COM call or some tweaking in COM call?
I appreciate your time.
Thanks
Similar Threads
-
Script execution from java
By umapathy_sekar in forum Advanced JavaReplies: 7Last Post: 09-17-2010, 06:34 PM -
java script variables with jsp
By meghana in forum JavaServer Pages (JSP) and JSTLReplies: 3Last Post: 08-18-2010, 01:36 PM -
Java script
By kirtichopra2003 in forum Advanced JavaReplies: 1Last Post: 12-04-2009, 08:55 PM -
java script
By satti in forum Web FrameworksReplies: 0Last Post: 06-09-2009, 09:53 AM -
run perl script from java
By maheshmhs in forum New To JavaReplies: 0Last Post: 12-19-2008, 01:40 PM
Bookmarks