Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. [Solved] Get data from webpage upon clicks on links
Forum Updated to NodeBB v4.3 + New Features

[Solved] Get data from webpage upon clicks on links

Scheduled Pinned Locked Moved Qt WebKit
3 Posts 1 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • McLionM Offline
    McLionM Offline
    McLion
    wrote on last edited by
    #1

    Hi

    I have a webpage used as GUI. The contents of the page is filled with dynamic data from an SQL server by the php scripts in the webpage.

    When the user clicks a certain link I need to get the data "hidden" in the link (multiple strings) that the webpage gets from the SQL server upon the click and have this data in C to further use it.

    How can I achieve this?

    Thanks
    McL

    1 Reply Last reply
    0
    • McLionM Offline
      McLionM Offline
      McLion
      wrote on last edited by
      #2

      AddOn:
      I found that I can read data from the webpage using JavaScript and QWebElement (formextractor sample).
      What I still miss is how to get the click and to get the correct data for the element clicked .... continuing to search.
      btw: I can influence the code on the webpage.

      1 Reply Last reply
      0
      • McLionM Offline
        McLionM Offline
        McLion
        wrote on last edited by
        #3

        AddOn:
        Further test showed that I can declare and add arguments to function calls in JS:
        @
        C++:
        void FormExtractor::submit(QString strTest)

        html:
        form onsubmit="formExtractor.submit('Link-ID')"
        @
        So, for the moment, I have everything I need.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved