Accessing a JS function from VB DotNet

C

Cor Ligthert

Adrian,

You can look at the attributes property from your controls.

However I think that this will give you as much information as you give us.

I can assume by instance that it is not a commandline VBNet base
application, however for the rest there is too much guessing.

Cor
 
A

Adrian

Hi Sorry
the link in the original post explains how to create an ActiveX replacement
in VB.Net using a project type windows control and adding a usercontrol to
make the GUI the resulting DLL the resulting DLL is imbedded in an HTML page
using the object tag.

I need either for the JS to wait until the control is fully initialised or
to be able to call the JS function within the hosting page once the control
has initialised.

hope this gives what is need for people to assist me, if not let me know and
I see what else can be added! May be the code for the dll but that's at the
link.

many thanks
 
C

Cor Ligthert

Adrian,

Again, from where do you want to connect to that JavaScript, from an aspnet
application, a windowform application, etc?

Cor
 
A

Adrian

From within the application which is a windows Class library project with an
added user control to give the GUI (as per the link ) and the DLL is
imbedded via object tags in an HTML page which has the function that I want
to call.
 
C

Cor Ligthert

Adrian,
with an added user control to give the GUI ............................

I give it up, we don't understand each other or you just don't want to
answer my question when I ask aspnet application or windowsform application.
I don't know what the GUI is you are talking about.

You ask questions on an abstraction level that makes in my opinion only
answers possible as:."It is not impossible that that can be done, check your
GUI interface for what classes there are available for that".

Maybe somebody else has an answer for you.

Success

Cor
 
A

Adrian

Did you take a look at the link in my first post? it tells you how to:
1. Create an assembly (class library project) that contains an item of type
User Control.
2. Expose an interface for the control.
3. Embed the user control into a web page.
4. Transfer data from a web form to the control and display the data on the
control.
I want to add the ability to a JS function in the hosting web page from
within the control

How more explicit can I be its a windows class control project with a user
control added that giver the GUI / form!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top