Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

get value from inputbox in the htmlpage with xul addon

1 view
Skip to first unread message

Alexander De Mulder

unread,
Jan 7, 2010, 1:59:24 PM1/7/10
to
Hi,

I have this simple html page with a single inputbox

When I call my FFaddon, I need to get the id of that inputbox.
I know thats its document.getElementById('id').value to get the value
from the inputbox but it doesn't from inside XUL. Its always null.

What do I need to interact with the html page on which I call the
addon?

Neil

unread,
Jan 7, 2010, 6:49:33 PM1/7/10
to
Alexander De Mulder wrote:

>I know thats its document.getElementById('id').value to get the value
>
>

Wrong document; you're working with the XUL document and you need to
work with the web page's document, which is content.document, see
https://developer.mozilla.org/en/Working_with_windows_in_chrome_code#Accessing_content_documents

--
Warning: May contain traces of nuts.

aikrez

unread,
Jan 8, 2010, 3:13:54 AM1/8/10
to
On 8 jan, 00:49, Neil <n...@parkwaycc.co.uk> wrote:
> Alexander De Mulder wrote:
> >I know thats its document.getElementById('id').value to get the value
>
> Wrong document; you're working with the XUL document and you need to
> work with the web page's document, which is content.document, seehttps://developer.mozilla.org/en/Working_with_windows_in_chrome_code#...

>
> --
> Warning: May contain traces of nuts.

content.document was idd what I was looking for. Thank you!

0 new messages