ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pyxpcom
pyxpcom
[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

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved