| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| dburner -
 
 
 Joined: 03 Jan 2009
 Posts: 3
 
 
 | 
			
				|  Posted: Sat Jan 03, 2009 9:25 pm    Post subject: ActiveX Objects Problem |   |  
				| 
 |  
				| Hi, I have a problem with an activex object that wont load. If I open the page localy(by double clicking on it) the object is loaded and there is not a problem(well I get the yellow bar that asks me if I want to block the script).
 If I open the page by hosting it with Abyss (http://ip/page.html) the activex is not loaded(no yellow bar).
 
 I made the object by making a tutorial from this site: http://www.dreamincode.net/forums/showtopic38890.htm
 
 Can anyone help me please?
 Thanks
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| pkSML -
 
 
 Joined: 29 May 2006
 Posts: 959
 Location: Michigan, USA
 
 | 
			
				|  Posted: Sun Jan 04, 2009 1:52 am    Post subject: |   |  
				| 
 |  
				| Can you access any pages by http://127.0.0.1 ? 
 Just double-clicking on the htm file only opens through the file system, not HTTP.
 _________________
 Stephen
 Need a LitlURL?
 
   http://CodeBin.yi.org
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		| dburner -
 
 
 Joined: 03 Jan 2009
 Posts: 3
 
 
 | 
			
				|  Posted: Sun Jan 04, 2009 12:04 pm    Post subject: |   |  
				| 
 |  
				| Yes the page is loading(by accesing it from htttp://127.0.0.1/) but its not loading the ActiveX Object. 
 This is the source code of the page.
 
 
  	  | Code: |  	  | <html xmlns="http://www.w3.org/1999/xhtml">
 <head> <title>C# ActiveX Test</title> </head>
 
 <body onload="myload();">
 <h1>This is Our ActiveX Test Page h1>
 
 The message from the ActiveX Control is [
 <div id="axmsg"></div>
 ]
 
 <script type ="text/javascript">
 function myload()
 {
 
 var myAx = new ActiveXObject("csharpAx.CHello");
 if(myAx != null)
 {
 myAx.Test() //Test() should open a MessageBox
 var d = document.getElementById("axmsg");
 d.outerText = "it works";
 
 }
 else
 {
 var d = document.getElementById("axmsg");
 d.outerText = "it dosent work";
 }
 }
 </script>
 </body></html>
 
 | 
 
 Also the text is not changeing...
 |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| rrinc -
 
 
 Joined: 24 Feb 2006
 Posts: 725
 Location: Arkansas, USA
 
 | 
			
				|  Posted: Thu Jan 08, 2009 11:28 pm    Post subject: |   |  
				| 
 |  
				| Is the object installed? _________________
 -Blake | New Server :D
 SaveTheInternet
 Soy hispanohablante. Puedes contactarme por mensajes privados.
 |  | 
	
		| Back to top |           | 
	
		|  | 
	
		| dburner -
 
 
 Joined: 03 Jan 2009
 Posts: 3
 
 
 | 
			
				|  Posted: Fri Jan 09, 2009 1:28 pm    Post subject: |   |  
				| 
 |  
				| If you mean registered with RegAsm then it is. |  | 
	
		| Back to top |     | 
	
		|  | 
	
		|  |