[Project_owners] opener.document.getElementById()

Philip Chee philip.chee at gmail.com
Mon Jan 2 02:37:21 EST 2006


On Sun, 1 Jan 2006 19:15:07 +0100, Eelco van Kuik wrote:

> This code doesn't work anymore in FF 1.5:

> aList = opener.document.getElementById("needlesearch-editor-list");
> aValue = aList.selectedItem.getAttribute("type")

> aValue doesn't return the right value anymore.

So what is it returning?

> How can I get to the value of
> the selected item in a list in a different window(the opener window)? 

> The list is generated using rdf datasources.

How about passing the selected item as one of the parameters to the new window?

<http://developer.mozilla.org/en/docs/Working_with_windows_in_chrome_code#Passing_data_between_windows>
<http://developer.mozilla.org/en/docs/index.php?title=Working_with_windows_in_chrome_code&printable=yes#Passing_data_between_windows>

Phil

-- 
Philip Chee <philip at aleytys.pc.my>, <philip.chee at gmail.com>
http://flashblock.mozdev.org/
Guard us from the she-wolf and the wolf, and guard us from the thief,
oh Night, and so be good for us to pass.


More information about the Project_owners mailing list