[webkit-qt] Emulate click event with QWebElement::evaluateJavaScript

Tr3wory tr3w at freemail.hu
Wed Jan 5 00:37:06 PST 2011


Sorry, I forgot the " lots of other places" example:
http://www.navioo.com/DOMReference/html/reference/api/htmlanchorelement.php

I checked Chrome and it's not works. I think it's not implemented in webkit.

Do you know any hack or workaround with QWebPage?

Cheers,
tr3w

On Wed, Jan 5, 2011 at 9:14 AM, Tr3wory <tr3w at freemail.hu> wrote:
> On Wed, Jan 5, 2011 at 1:05 AM, Benjamin Poulain
> <benjamin.poulain at nokia.com> wrote:
>> The example is on an input element. Those elements have a click() method,
>> not link elements (see the DOM specification).
>
> It's interesting, because it's just works in Opera.
> I can't find it in the w3 specification, but on a lots of other places
> I can find a click() method in HTMLAnchorElement which is an inherited
> function from HTMLElement, and it looks like all the major browsers
> supports it (for example Safari from 1.0).
>
>> I do not know if there is a simple way to activate a link programmatically. You could execute the event
>> handler, and load href by default, or send a syntethic mouse event.
> Yes, but I want to use QWebPage without any visible window...
>
> tr3w
>


More information about the webkit-qt mailing list