logo       

IFrame: pyxpcom broken or not implemented yet?: msg#00000

mozilla.devel.xpcom.python

Subject: IFrame: pyxpcom broken or not implemented yet?

Hi,

I tried to address the document in an Iframe with python. But the object returned by:
 
my_iframe = document.getElementById('my_iframe')
 
has no methods or attributes of the iframe class.(It has the inherited methods from Node)
 
 
Ok it has attributes but they can only be addressed via:
 
my_iframe_src = my_iframe.attributes.item(1).nodeValue # item(0) holds the id
 
I havn't found a workaround for methods, yet.
 
This don't work:
my_iframe.src #__getattr__ error
myiframe.contentDocument #__getattr__ error
document.frames[0] #r__getitem__ error; (frames.item)Attribute item doesn't exist
 
I tried the same commands in _javascript_ and they work like intended.
 
I might try to pass the reference from inside the iframe through python module object structure, but i would prefer to understand whats wrong with iframe.
So, did I do anything wrong, or is iframe realy "broken"/not implemented yet ?
 
 
The Xul Element "Label" has the same problems: Attributes can only be reached through the above backdoor.
(Other elements work like intended in python)

Bye,
Torsten


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise