Something like this should be close:
import win32com.client, pythoncom
ie=win32com.client.Dispatch('internetexplorer.application')
ie.Visible=1
ie.Navigate('somepagewithjavascript.html')
id=ie.Document.Script._oleobj_.GetIDsOfNames('somejsfunction')
res=ie.Document.Script._oleobj_.Invoke(id, 0,
Roger Upole [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Something like this should be close:
import win32com.client, pythoncom
ie=win32com.client.Dispatch('internetexplorer.application')
ie.Visible=1
ie.Navigate('somepagewithjavascript.html')
I need to make IE execute javascript in a web page with COM+ and
Python.
Similarly to the way they do it in this article. . .
http://www.codeproject.com/com/jscalls.asp
--
http://mail.python.org/mailman/listinfo/python-list