473,386 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Accessing a JS function from VB DotNet

Hi
I'm building an ActiveX replacement in VB.net base info from
http://www.vbdotnetheaven.com/Code/Jun2003/2067.asp

Anyone know how I can call a JavaScript Function in the hosting webpage from
within my VB.Net app?

Thanks
Nov 21 '05 #1
6 1290
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
Nov 21 '05 #2
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

"Cor Ligthert" <no************@planet.nl> wrote in message
news:OJ**************@TK2MSFTNGP12.phx.gbl...
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

Nov 21 '05 #3
Adrian,

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

Cor
Nov 21 '05 #4
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.

"Cor Ligthert" <no************@planet.nl> wrote in message
news:ev**************@tk2msftngp13.phx.gbl...
Adrian,

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

Cor

Nov 21 '05 #5
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
Nov 21 '05 #6
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!

"Cor Ligthert" <no************@planet.nl> wrote in message
news:eK**************@TK2MSFTNGP10.phx.gbl...
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

Nov 21 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: George Grodentzik | last post by:
I created a typed dataset from which I am trying to access the data. When I use the following code to access a row string name =dataset.person.firstName I receive an error...
5
by: Mike Oliszewski | last post by:
Given the following c# code: namespace Company2 { public class SomeFunctions { public void FunctionA() { // Do Something. }
2
by: damonf | last post by:
I'm currently trying to add an ASP hyperlink to a template column in a datagrid. The normal hyperlink column doesn't give me the ability to add attributes to the item. In my grid there are four...
5
by: Vinod Kumar | last post by:
Hi All, Can I access a Javascript function written in an ASP.NET from the codebehind (C#) of that page? If yes, kindly give the code snippet to do this. Thanks and Regards Vinod Kumar
5
by: Daniel Corbett | last post by:
I am trying to save a file dynamically created in a webpage. I get the following headers, but cannot figure out how to save the attachment. I am basically trying to replicate what internet...
6
by: Noggin The Nog | last post by:
Hi I'm sure this is a simple problem ... for someone! I have a class which exposes a property which is another object (SmartDate): Public Property CreateDate() As SmartDate Get Return...
3
by: Khalique | last post by:
Problem: Accessing web service causes exception – “The request failed with HTTP status 401 : Access Denied”. I created a web service on my local machine and then developed a separate test...
3
by: Jim Lewis | last post by:
I have read several things that state accessing a Web Service through a Query String should work. However, when I try to execute http://localhost/webservice1/service1.asmx/HelloWorld I get the...
3
by: Olivier BESSON | last post by:
Hello, I have a web service of my own on a server (vb.net). I must declare it with SoapRpcMethod to be used with JAVA. This is a simple exemple method of my vb source : ...
4
by: Jon | last post by:
I wrote a VS 2005 C# express programme that accesses a web service. It works fine when there's a direct connection to the internet, but on two different PCs with internet access via a proxy, I get...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.