I'm looking for the event that is fired by Internet Explorer to an "alert":
<SCRIPT>
Alert("You already have a session open")
</SCRIPT>
The event would be webBrowser.Docu ment.????
Much appreciate any help you can give me.
Thanks,
Alistair Saldanha
Jul 24 '05
11 4590
Alistair Saldanha wrote: Csaba,
Thank you so much for your post.
I cannot change the code in the WebBrowser, I am helping the end user react to the WebBrowser using Visual Basic automation. The Visual Basic Automation automatically enters the account number and other details so the end user doesn't have to enter them manually. What's killing the VB automation are the consant messages that pop up saying "Another session is running", which is actually a bug in the WebBrowser coding, but it stops the VB automation cold. So I'm hoping to do something to sidestep the alerts.
Alistair
From your description, it sounds like you're not dealing with
JavaScript alerts but WebBrowser MsgBoxes. We either need to see the JS
code of the page (everything in <script> tags) to determine for sure,
or if you already know that it's not a JS-alert(), then you're really
asking in the wrong newsgroup.
If it's not JS-related, a VB newsgroup or VB-WebBrowser newsgroup would
serve you best.
Thanks, Chris. I think I found the solution here: http://www.thescarms.com/vbasic/subclassform.asp
Thanks for your help.
Alistair
"Christophe r J. Hahn" <cj****@gmail.c om> wrote in message
news:11******** **************@ g44g2000cwa.goo glegroups.com.. . Alistair Saldanha wrote: Csaba,
Thank you so much for your post.
I cannot change the code in the WebBrowser, I am helping the end user react to the WebBrowser using Visual Basic automation. The Visual Basic Automation automatically enters the account number and other details so the end user doesn't have to enter them manually. What's killing the VB automation are the consant messages that pop up saying "Another session is running", which is actually a bug in the WebBrowser coding, but it stops the VB automation cold. So I'm hoping to do something to sidestep the alerts.
Alistair
From your description, it sounds like you're not dealing with JavaScript alerts but WebBrowser MsgBoxes. We either need to see the JS code of the page (everything in <script> tags) to determine for sure, or if you already know that it's not a JS-alert(), then you're really asking in the wrong newsgroup.
If it's not JS-related, a VB newsgroup or VB-WebBrowser newsgroup would serve you best. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: George Hester |
last post by:
Nothing. The applet does what it is supposed to do but onload never fires.
Any suggestions what may be the problem here? Thanks.
--
George Hester
__________________________________
|
by: Boki |
last post by:
Hi All,
// code start
alert("document.all.txtbox"+valueA+".value")
// end code
could you please advice,
can it show the value of txtbox ?
|
by: alvin.yk |
last post by:
Hi,
Normally, a piece of code such as
<a href="http://www.yahoo.com" onclick="alert('hello');return
false;">link</a>
will stop the browser from actually going to href's destination.
However, this is not the case with the IE7 I am using. What has
changed?
|
by: moho |
last post by:
Hi, I've been struggling with AJAX for a while and notice that if I add the alert("xxx")
in my code it always makes the code work.
I'm using divs where I put the output from the server and then handling the info from there. Sometimes the JS doesn't find the newly inserted tags (divs with id), only when I add the alert command before it. It's kind of strange. Aswell as when enabling FireBug. So I guess that FireBug and the alert are doing...
|
by: Tonio Tanzi |
last post by:
I have an asp page with this tag
<body onLoad="show_msg('<%=error_msg%>');">
where "show_msg" is a javascript function that shows the message
contained in the asp variable "error_msg" only if this variable is not
empty. The message is shown using the "alert()" function.
The page works good in almost all the case, but some users have reported
to my that the alert window don't appear.
| |
by: Jeremy J Starcher |
last post by:
While reading c.l.j, I've noticed that some people prefer and indeed even
recommend the use of "window.alert()" over "alert()".
I can't find any technical reason to make this distinction, and seems to
have a (tiny) amount overhead since window itself points to the global
object, hence, a circular reference.
(From everything I am reading, window is just a REFERENCE back to the
global object, as opposed to a separate object.)
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
| |
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |