Results 1 to 4 of 4

Thread: Webkit open new javascript Page

  1. #1
    Join Date
    Dec 2010
    Location
    South Africa
    Posts
    56
    Thanks
    8
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Webkit open new javascript Page

    Good day I.

    I have a program that use webkit and it works great but i have 3 webpages that use java window.open to open new pages and work great under firefox etc.

    How can i in webkit detect if a link with window.open is called and then capture the page it was opening so that i can create a new instance of qwebkit and send it the url.

    Any help would be appriociated.

    I did see something about

    Qt Code:
    1. _parentFrame->evaluateJavaScript("window.open("", "");");
    To copy to clipboard, switch view to plain text mode 
    but i dont know how to impliment it.


    Regards

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Webkit open new javascript Page


  3. #3
    Join Date
    Dec 2010
    Location
    South Africa
    Posts
    56
    Thanks
    8
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: Webkit open new javascript Page

    Thanks you for the code suggestion.

    But i cant see a signal for createwebpage.

    How do i link the function to a slot() or how to i use sorry for the noob question

    my webview is "ui->Webview"
    Last edited by ShapeShiftme; 18th October 2012 at 13:24.

  4. #4
    Join Date
    Dec 2010
    Location
    South Africa
    Posts
    56
    Thanks
    8
    Thanked 4 Times in 4 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Maemo/MeeGo

    Default Re: Webkit open new javascript Page

    Sorry to bump this but can anyone please help

Similar Threads

  1. Javascript Function execution in html page
    By saeedIRHA in forum Newbie
    Replies: 6
    Last Post: 17th October 2011, 13:01
  2. Webkit and Javascript Debugger
    By ideru in forum Installation and Deployment
    Replies: 1
    Last Post: 7th October 2011, 04:14
  3. Replies: 1
    Last Post: 29th April 2011, 23:50
  4. Replies: 3
    Last Post: 25th February 2010, 08:53
  5. WebKit - accessing javascript results + googleMap
    By giusepped in forum Qt Programming
    Replies: 10
    Last Post: 30th May 2009, 00:01

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.