×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Aug 2008
    Posts
    25

    How to get the url of popup window of one webpage?

    hi, everybody

    I've create a browser based on CBrctlInterface, now, I need to implement the switcher of blocking the popup window in some webpage. I've inherited the MBrCtlWindowObserver, there's one function in this observer, CBrCtlInterface* OpenWindowL( TDesC& aUrl,TDesC* aTargetName,TBool aUserInitiated,TAny* aReserved ); Once there is popup window in webpage, this function would be called, it seems that we could get the url of popup window through the first param, but, actually, every time the first param is NULL( The length is zero ).

    In webkit the code as following:

    CBrCtl* CBrCtl::getWindowL(TDesC& windowName, bool userGesture)
    {
    CBrCtlInterface* newBrctl = NULL;
    TPtrC emptyUrl = KNullDesC();
    if (m_brCtlWindowObserver) {
    newBrctl = m_brCtlWindowObserver->FindWindowL(windowName);
    if (!newBrctl)
    newBrctl = m_brCtlWindowObserver->OpenWindowL(emptyUrl, &windowName, userGesture, 0);
    }
    return static_cast<CBrCtl*>(newBrctl);
    }
    every time it send a NULL descriptor to the client, it's very vapor.
    The CBrctlInterface only provides few interface for us to call.

    I really need know url of popup, because I want to show popup in another browser instance in another view. is there any way could get it?

    Please lend me a kind hand, thanks.
    Last edited by clovis1314; 2009-01-19 at 06:58.

  2. #2
    Registered User
    Join Date
    Aug 2008
    Posts
    25

    Re: How to get the url of popup window of one webpage?

    No one can resolve this?

  3. #3
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: How to get the url of popup window of one webpage?

    If you have a look at the command handling in brctl.cpp for TBrCtlDefs::ECommandOpenNewWindow you will see it opens a new window AND THEN loads the URL.


    No idea how you would handle it however.
    Download Symbian OS now! [url]http://developer.symbian.org[/url]

  4. #4
    Registered User
    Join Date
    Aug 2008
    Posts
    25

    Re: How to get the url of popup window of one webpage?

    Quote Originally Posted by Paul.Todd View Post
    If you have a look at the command handling in brctl.cpp for TBrCtlDefs::ECommandOpenNewWindow you will see it opens a new window AND THEN loads the URL.


    No idea how you would handle it however.
    Thanks for replying. But when should I call HandleCommandL(TBrCtlDefs::ECommandOpenNewWindow )? I've call the fuction in the MBrCtlWindowObserver's functions, but the browser hasn't any reaction.

Similar Threads

  1. try to solve my popup window problem
    By pamelag in forum Symbian User Interface
    Replies: 16
    Last Post: 2008-10-16, 13:11
  2. Popup Lock Code Settings Window
    By websafety in forum Symbian
    Replies: 5
    Last Post: 2008-09-02, 05:42
  3. popup window help
    By xarris_ in forum Mobile Java General
    Replies: 1
    Last Post: 2007-07-09, 11:20
  4. Message popup window handler in series 80
    By vaibhavsh83 in forum Symbian
    Replies: 0
    Last Post: 2005-06-14, 11:45
  5. GPRS connection without popup window on 7650
    By sena73 in forum Symbian Networking & Messaging (Closed)
    Replies: 6
    Last Post: 2003-10-02, 14:50

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×