Re: [webkit-dev] click event on a tag without jscript

2008-05-27 Thread Geoffrey Garen
> I managed to get the Element form the Document object. The problem now > is I can't send a click() event on that element like in JavaScript: > > document.getElementById(myid).click() > > Any ideas? You need to look into the DOM createEvent and dispatchEvent APIs. http://www.w3.org/TR/DOM-Level-

Re: [webkit-dev] click event on a tag without jscript

2008-05-27 Thread Geoffrey Garen
> Is there a way to get this Document object from a WebView object or > a WebFrame object? No. The C++ components of WebCore are not API. Geoff ___ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit

Re: [webkit-dev] click event on a tag without jscript

2008-05-27 Thread Luka Napotnik
I managed to get the Element form the Document object. The problem now is I can't send a click() event on that element like in JavaScript: document.getElementById(myid).click() Any ideas? Greets, Luka Dne 27.05.2008 (tor) ob 11:52 +0200 je Luka Napotnik zapisal(a): > Hello again. > > Yes DOM s

Re: [webkit-dev] click event on a tag without jscript

2008-05-27 Thread Luka Napotnik
Hello again. Yes DOM seem to be the right thing for me. The only problem is I'm using C/C++ not Objective-C. I've looked into WebCore/dom/Document.h and that's the thing I need, the getElementById() method. Is there a way to get this Document object from a WebView object or a WebFrame object? Gre