๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.internet.web
5 messages
5 total messages Started by Elisabeth Kvarnryd Wed, 07 Feb 2007 12:58
CppWebBrowser popup
#261
Author: Elisabeth Kvarnryd
Date: Wed, 07 Feb 2007 12:58
14 lines
1350 bytes
Hello

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.
Any idea what I should write?

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.
Does anyone have a smart code snippet I could use?

Regards
Ellisabeth 
Re: CppWebBrowser popup
#262
Author: 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
Re: CppWebBrowser popup
#263
Author: Elisabeth Kvarnryd
Date: Wed, 07 Feb 2007 22:43
8 lines
1162 bytes
Ok, I've managed to work it out.

I now have a new question. Is it possible to avoid the "Internet Explorer 
Script Errors" that appear sometimes?

You have to click "Yes" all the time.

/Elisabeth 
Re: CppWebBrowser popup
#265
Author: Remy Lebeau (TeamB)
Date: Wed, 07 Feb 2007 22:52
12 lines
1283 bytes
"Elisabeth Kvarnryd" <jesper@jptorrent.com> wrote in message
news:45ca5619$1@newsgroups.borland.com...

> Is it possible to avoid the "Internet Explorer Script Errors" that
appear sometimes?

You have to create and register your own script debugger in order to
do that.


Gambit
Re: CppWebBrowser popup
#273
Author: Enrique
Date: Thu, 08 Feb 2007 17:38
19 lines
1496 bytes
Or you can set "Silent" property to true... it works for me.
bye

"Remy Lebeau (TeamB)" <no.spam@no.spam.com> escribi๏ฟฝ en el mensaje 
news:45ca584f$1@newsgroups.borland.com...
>
> "Elisabeth Kvarnryd" <jesper@jptorrent.com> wrote in message
> news:45ca5619$1@newsgroups.borland.com...
>
>> Is it possible to avoid the "Internet Explorer Script Errors" that
> appear sometimes?
>
> You have to create and register your own script debugger in order to
> do that.
>
>
> Gambit
>
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads