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
Re: [pyxpcom] python + javascript
by Mark Hammond other posts by this author
Oct 21 2007 4:39PM messages near this date
view in the new Beta List Site
[pyxpcom] python + javascript | Re: [pyxpcom] python + javascript
This should be possible if you have the python/dom extensions available -
you will be able to find a JSExec method, which should work fine for this
purpose.  Please search the archives of this list, where I made some mention
of this function a number of months ago.

Cheers,

Mark

>  -----Original Message-----
>  From: pyxpcom-bounces@[...].com [mailto:pyxpcom-
>  bounces@[...].com] On Behalf Of Andres Riancho
>  Sent: Saturday, 20 October 2007 7:19 AM
>  To: pyxpcom@[...].com
>  Subject: [pyxpcom] python + javascript
>  
>  List,
>  
>      Hi, I'm a pyxpcom newbie and I don't really know if this is
>  possible so i'll just ask. I need to create a python script that does
>  the following:
>  
>          - fetch a document using pyxpcom
>          - after fetching this document, load the DOM with the
>  corresponding data
>          - loop through the DOM tree and execute the contents of all
>  onClick attributes of the tags. Please have in mind that the contents
>  of the onClick attribute is javascript code.
>          - after "clicking", load the new DOM tree
>  
>      Is this possible? If not, could you recommend me a way of doing it
>  ?
>  
>  Cheers,
>  --
>  Andres Riancho
>  http://w3af.sourceforge.net/
>  Web Application Attack and Audit Framework
>  _______________________________________________
>  pyxpcom mailing list
>  pyxpcom@[...].com
>  To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
pyxpcom mailing list
pyxpcom@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Andres Riancho
Mark Hammond
Andres Riancho

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved