Home All Groups Group Topic Archive Search About

find window disappears if I call "navigate" in javascript with web browser control

Author
9 Jul 2006 5:38 PM
ari
I have a vb.net program that uses the web browser for display purposes.
I have implemented a type of "tooltip" pop up window that works as
follows:

in the html I have defined:

<SPAN id="1" _tip="" onmouseover="hover(this,'1')"
onmouseout="hoveroff(this,'1')" </SPAN>


[Sorry for the < - if I put the actual text in, google groups gets
unhappy....]

where the hover function does:

    function hover(curobj,hotspot_num)
    {
        if (curobj._tip == "")
        {
            navigate("genhotspot:" + hotspot_num);
        }
        if (curobj._tip != "")
        {
            displayTip(curobj)  //displays the popup window
        }
    }



this calls the BeforeNavigate2 which in turn sets the value of "_tip"

All this works very nicely - EXCEPT if I have the "find" window open
after pressing ^F. It makes the find window disappear. Any body have
any idea why - or better yet - how to make it not do that?

Author
9 Jul 2006 5:55 PM
Herfried K. Wagner [MVP]
"ari" <uniko***@yahoo.com> schrieb:
>I have a vb.net program that uses the web browser for display purposes.
> I have implemented a type of "tooltip" pop up window that works as
> follows:

Your question doesn't seem to be related to VB.NET programming -- I suggest
to post it to either a JavaScript or Internet Explorer newsgroup.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>
Author
9 Jul 2006 8:10 PM
Göran_Andersson
Because you are navigating to a new page.

ari wrote:
Show quoteHide quote
> I have a vb.net program that uses the web browser for display purposes.
> I have implemented a type of "tooltip" pop up window that works as
> follows:
>
> in the html I have defined:
>
> &lt;SPAN id="1" _tip="" onmouseover="hover(this,'1')"
> onmouseout="hoveroff(this,'1')" &lt;/SPAN>
>
>
> [Sorry for the &lt; - if I put the actual text in, google groups gets
> unhappy....]
>
> where the hover function does:
>
>     function hover(curobj,hotspot_num)
>     {
>         if (curobj._tip == "")
>         {
>             navigate("genhotspot:" + hotspot_num);
>         }
>         if (curobj._tip != "")
>         {
>             displayTip(curobj)  //displays the popup window
>         }
>     }
>
>
>
> this calls the BeforeNavigate2 which in turn sets the value of "_tip"
>
> All this works very nicely - EXCEPT if I have the "find" window open
> after pressing ^F. It makes the find window disappear. Any body have
> any idea why - or better yet - how to make it not do that?
>