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

Luka Napotnik luka.napotnik at gmail.com
Tue May 27 03:41:30 PDT 2008


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 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?
> 
> Greets,
> Luka
> 
> Dne 26.05.2008 (pon) ob 11:08 -0700 je Geoffrey Garen zapisal(a):
> > > I want to know if it's possible to create a click event on a tag  
> > > within
> > > a page without using javascript. I know the tag name.
> > 
> > I assume you mean "without using JavaScript or the mouse."
> > 
> > Depending on the type of application you're writing, you could use the  
> > Objective-C API to the DOM.
> > 
> > http://developer.apple.com/documentation/Cocoa/Conceptual/DisplayWebContent/Tasks/DOMObjCBindings.html
> > 
> > Cheers,
> > Geoff
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: To je digitalno podpisan del =?UTF-8?Q?sporo=C4=8Dila?=
Url : http://lists.webkit.org/pipermail/webkit-dev/attachments/20080527/2077e94a/attachment.sig 


More information about the webkit-dev mailing list