[pyxpcom] problem creating mouse events from pyxpcom
by Project Work other posts by this author
Feb 12 2007 11:47PM messages near this date
view in the new Beta List Site
Re: [pyxpcom] Wrapping an existing python module with PyXPCOM
|
[pyxpcom] Failed to get info for IID '{e1dbcba0-fb38-11d1-bd87-00805f8ae3f4}'
Hi,
I Tried to create mouseevent from the pyxpcom on some particular node. After i got the handl
e of the document from javascript (getBrowser.contentDocument). I have done the following,
evt = node.ownerDocument.createEvent('MouseEvents')
evt.initMouseEvent('click',True,True,node.ownerDocument.defaultView, 1, 0, 0, 0, 0, False, F
alse, False, False, 0, None)
node.dispatchEvent(evt)
After that it is showing javascript error. The node which i am trying to click is something
like this
<a onclick="myList.addItem(23423)"> something </a>
Can somebody tell why this happening ?.
regards,
Sai Rahul.
____________________________________________________________________________________
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.
http://videogames.yahoo.com/platform?platform=120121
_______________________________________________
pyxpcom mailing list
pyxpcom@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|