🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #262

Re: CppWebBrowser popup

#262
From: Remy Lebeau (TeamB)
Date: Wed, 07 Feb 2007 17:55
25 lines
1778 bytes
"Elisabeth Kvarnryd" <jesper@jptorrent.com> wrote in message
news:45c9cd27@newsgroups.borland.com...

> I'm having problems with creating a pop-up blocker. I know that I
> should stop the navigation if there is a new window, but the problem
> is that it doesn't navigate at all if I use *Cancel.

Yes, it does.  Works fine when I use it.  When a new window is
blocked, the navigation simply moves to the calling window that was
trying to open the new window.  In order to actually stop the
navigation, you have to use the OnBeforeNavigate2 event in addition to
the OnNewWindow2 event.

> What I really want is a button that will change the caption to
"Pop-Up
> detected, do you want to show?" and when you click on it, it will
show
> the pop-up.

IE doesn't work that way.  You would have to use a popup prompt, such
as via MessageBox(), instead of a button on the form.


Gambit
Technical Details
Message-ID: <45ca128a$3@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <45c9cd27@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,41a2116b95221709
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <45c9cd27@newsgroups.borland.com>
Subject: Re: CppWebBrowser popup
Date: Wed, 7 Feb 2007 09:55:06 -0800
Lines: 27
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 75.83.34.171
Message-ID: <45ca128a$3@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1170870922 75.83.34.171 (7 Feb 2007 09:55:22 -0800)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail