Hi all,
I want to use a .js into a visual basic project. How can I do it ? I've
tried to open the script code into my project....and then ??? I see the code
but I don't jnow how to make it interact with the vb program.
Every kind of help is well accepted.
Thank you .
Fabrizio 8 1660
"Fabrizio Cyber" <fa*****@lombardiacom.it> schrieb I want to use a .js into a visual basic project. How can I do it ? I've tried to open the script code into my project....and then ??? I see the code but I don't jnow how to make it interact with the vb program.
Every kind of help is well accepted.
I don't understand the question. In a VB.NET project, you can write VB.NET
code, build and start the application. The VB.NET compiler doesn't
understand code from a .js file.
--
Armin http://learn.to/quote http://www.plig.net/nnq/nquote.html
* Fabrizio Cyber schrieb: I want to use a .js into a visual basic project. How can I do it ? I've tried to open the script code into my project....and then ??? I see the code but I don't jnow how to make it interact with the vb program.
You cannot use JavaScript code inside a Visual Basic .NET source file.
--
Herfried K. Wagner
Microsoft MVP
<http://www.mvps.org/dotnet>
Hi Fabrizio,
For a webform
\\\
Dim str As String
str = "<script language=javascript> {window.open('http://www.google.com');}
</script>"
RegisterStartupScript("Startup", str)
///
For a windowform (author HKW) I think he did forget it :-))
\\\
AxWebBrowser.Navigate("about:<html><body
onload=javascript:window.external.addFavorite('" + textbox1.Text +
"')></body></html>")
///
I hope this helps a little bit?
Cor
sorry, I'll try to explain me better.
I have a script that modifies the visibility of some objects into an html
page. I have to open this html page from a vb.net code; so , to allow the
html page change aspect, I have to execute the appropiate script that makes
the html page to change; and I have to execute this script from my vb code !
Is there any way to do it ? Please tell me everything you think It could
be useful or not.
Fabrizio
"Armin Zingler" <az*******@freenet.de> ha scritto nel messaggio
news:eH**************@TK2MSFTNGP12.phx.gbl... "Fabrizio Cyber" <fa*****@lombardiacom.it> schrieb I want to use a .js into a visual basic project. How can I do it ? I've tried to open the script code into my project....and then ??? I see the code but I don't jnow how to make it interact with the vb program.
Every kind of help is well accepted.
I don't understand the question. In a VB.NET project, you can write VB.NET code, build and start the application. The VB.NET compiler doesn't understand code from a .js file.
-- Armin
http://learn.to/quote http://www.plig.net/nnq/nquote.html
"Fabrizio Cyber" <fa*****@lombardiacom.it> schrieb sorry, I'll try to explain me better. I have a script that modifies the visibility of some objects into an html page. I have to open this html page from a vb.net code; so , to allow the html page change aspect, I have to execute the appropiate script that makes the html page to change; and I have to execute this script from my vb code ! Is there any way to do it ? Please tell me everything you think It could be useful or not. Fabrizio
Sorry, I have no idea how to do this. I have no clue how you open the html
page, how to read it and what "change aspect" means. I have also no idea
where the page is stored and when and how you want to change the page.
--
Armin http://learn.to/quote http://www.plig.net/nnq/nquote.html
Fabio,
It is possible to build the page with javascript in it with vb.net but I
dont think that is what you are after. so start at http://www.perfectxml.com/dotnetexample.asp?id=1
of course you need a web server that supports ASP.NET server for this to
work.
For some reason, many ISP's I have encoutnered are afraid of .NET web
programs citing security concerns. When I quiz them further they indicate
they know nothing about .NET most of the time.
"Fabrizio Cyber" <fa*****@lombardiacom.it> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl... sorry, I'll try to explain me better. I have a script that modifies the visibility of some objects into an html page. I have to open this html page from a vb.net code; so , to allow
the html page change aspect, I have to execute the appropiate script that
makes the html page to change; and I have to execute this script from my vb code
! Is there any way to do it ? Please tell me everything you think It
could be useful or not. Fabrizio
"Armin Zingler" <az*******@freenet.de> ha scritto nel messaggio news:eH**************@TK2MSFTNGP12.phx.gbl... "Fabrizio Cyber" <fa*****@lombardiacom.it> schrieb I want to use a .js into a visual basic project. How can I do it ? I've tried to open the script code into my project....and then ??? I see the code but I don't jnow how to make it interact with the vb program.
Every kind of help is well accepted.
I don't understand the question. In a VB.NET project, you can write
VB.NET code, build and start the application. The VB.NET compiler doesn't understand code from a .js file.
-- Armin
http://learn.to/quote http://www.plig.net/nnq/nquote.html
Hi Fabrizio I have a script that modifies the visibility of some objects into an html page. I have to open this html page from a vb.net code; so , to allow
the html page change aspect, I have to execute the appropiate script that
makes the html page to change; and I have to execute this script from my vb code
! Is there any way to do it ? Please tell me everything you think It
could be useful or not. Fabrizio
I thought I sended that and see it in the thread on West European Time at
15:16
Dit it not arive?
Cor
Fabrizio,
Is the html page running/displayed on a server or a client?
Is the VB.NET code running on a server or a client?
Is this a web project and is ASP.NET involved? More specifically what type
of project are you working on? Are multiple project types involved (such as
class library, control library, windows form, web service, web app, console,
other)?
Is the JavaScript embedded in the HTML page?
It sounds like you want to open a page in a web browser and have the java
script in the page execute.
Hope this helps
Jay
"Fabrizio Cyber" <fa*****@lombardiacom.it> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl... sorry, I'll try to explain me better. I have a script that modifies the visibility of some objects into an html page. I have to open this html page from a vb.net code; so , to allow
the html page change aspect, I have to execute the appropiate script that
makes the html page to change; and I have to execute this script from my vb code
! Is there any way to do it ? Please tell me everything you think It
could be useful or not. Fabrizio
"Armin Zingler" <az*******@freenet.de> ha scritto nel messaggio news:eH**************@TK2MSFTNGP12.phx.gbl... "Fabrizio Cyber" <fa*****@lombardiacom.it> schrieb I want to use a .js into a visual basic project. How can I do it ? I've tried to open the script code into my project....and then ??? I see the code but I don't jnow how to make it interact with the vb program.
Every kind of help is well accepted.
I don't understand the question. In a VB.NET project, you can write
VB.NET code, build and start the application. The VB.NET compiler doesn't understand code from a .js file.
-- Armin
http://learn.to/quote http://www.plig.net/nnq/nquote.html
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: AK |
last post by:
I don't want any part of the previous discussion on Visual Basic
versus Visual Basic.Net.
My query is about using Visual Basic for Applications; and whether it
is better to use Visual Basic 6 or...
|
by: julio Morales |
last post by:
Hi!
When a user is in a MSAccess form, with the values of a registry, and
click on 'send this', I need to send the id. value of such registry to
a perl script with visual basic.
I can exec a...
|
by: janice_2k |
last post by:
Dear Sir/Mdm,
I am writing this on behalf of my company. We bought the Visual Studio .NET Enterprise version but currently we need to use Visual Basic 6 for a small development. We are not able to...
|
by: Ralph |
last post by:
I used to have Visual Basic .net std. 2003 installed on WinXP SP1A. But I
found it too hard to upgrade WinXP to SP2. Now, I do have WinXP SP2
installed, but I am having problems installing...
|
by: fernandez.dan |
last post by:
Hey I'm sorry if this is not the appropriate news group for this
question. I was wondering if anyone has any recommendation for
embbedding a script engine in a c++ application. I want to feed my...
|
by: frossberg |
last post by:
Hello!
I tried to install the Visual Basic.NET Resource Kit
(http://msdn.microsoft.com/vbasic/vbrkit/) but obviously something went very
wrong and now it sems impossible both to repair and to...
|
by: Jarod_24 |
last post by:
My program (it's a webcrawler) downloads htmlpages and in some cases the
html has <script> </script> tags in it that generates parts of the html.
How can i interpret this javascript and get the...
|
by: =?Utf-8?B?RGF2aWQ=?= |
last post by:
Hello
I'm trying to develop a Windows service, in visual studio 2005, which
executes a visual basic script. However, if the script interacts with the
file system (as it has to), the script...
|
by: KevinADC |
last post by:
Note: You may skip to the end of the article if all you want is the perl code.
Introduction
Many websites have a form or a link you can use to download a file. You click a form button or click...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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,...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
| |