Tim Roberts wrote:
>
> elca wrote:
>> Hello,
>> ""clickcr" functions, you would have to use the IE object model to inject
>> a
>> new <script> tag into the page that calls the appropriate function"
>>
>> this is actually what i want to do function. :)
>> if possible would help me how to make it work.
>>
>
> I've never done this, but if you fetch the Document property from the IE
> object, you have exactly the same thing as the "document" object that
> the page's Javascript sees. So, I think you should be able to say
> something like this:
>
> doc = ieObject.Document
> doc.write( "<script> clickcr( xxx, yyy, zzz ); </script>" );
>
> There may be some COM tricks to play here. The Document object can be
> either IHTMLDocument or IHTMLDocument2 or IHTMLDocument3 or ...4 or ...5
> or ...6. You'll need at least IHTMLDocument2 in order to use these
> methods. Plus, the "write" method actually takes a COM SAFEARRAY. I'm
> not exactly sure how that's exposed in Python.
>
> You're going to have to do some reading about this, both about the
> win32com toys, and about the InternetExplorer automation interface, and
> about the IHTMLDocument2 interface.
>
> --
> Tim Roberts, t...@probo.com
> Providenza & Boekelheide, Inc.
>
> _______________________________________________
> python-win32 mailing list
> python-win32@python.org
> http://mail.python.org/mailman/listinfo/python-win32
>
>
hello,
thanks for your help ,
maybe i need to study some more about many related with win32 and so on
thanks again
Paul
--
View this message in context:
http://old.nabble.com/IE-interface-PAMIE-javascript-click-or-win32-ie-click-tp26302675p26345290.html
Sent from the Python - python-win32 mailing list archive at Nabble.com.
_______________________________________________
python-win32 mailing list
python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32