ActiveX Objects Problem

 
Post new topic   Reply to topic    Aprelium Forum Index -> ASP.NET
View previous topic :: View next topic  
Author Message
dburner
-


Joined: 03 Jan 2009
Posts: 3

PostPosted: Sat Jan 03, 2009 9:25 pm    Post subject: ActiveX Objects Problem Reply with quote

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 View user's profile Send private message
pkSML
-


Joined: 29 May 2006
Posts: 952
Location: Michigan, USA

PostPosted: Sun Jan 04, 2009 1:52 am    Post subject: Reply with quote

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 View user's profile Send private message Visit poster's website
dburner
-


Joined: 03 Jan 2009
Posts: 3

PostPosted: Sun Jan 04, 2009 12:04 pm    Post subject: Reply with quote

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 View user's profile Send private message
rrinc
-


Joined: 24 Feb 2006
Posts: 725
Location: Arkansas, USA

PostPosted: Thu Jan 08, 2009 11:28 pm    Post subject: Reply with quote

Is the object installed?
_________________
-Blake | New Server :D
SaveTheInternet
Soy hispanohablante. Puedes contactarme por mensajes privados.
Back to top View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
dburner
-


Joined: 03 Jan 2009
Posts: 3

PostPosted: Fri Jan 09, 2009 1:28 pm    Post subject: Reply with quote

If you mean registered with RegAsm then it is.
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> ASP.NET All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group