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

watching the changing of content.location in browser.xul

0 views
Skip to first unread message

Hardip

unread,
Dec 29, 2009, 9:49:47 AM12/29/09
to
http://pastebin.mozilla.org/693694

this code runs in the browser.xul scope and it throws an exception
when it tries to call content.watch() - the method does not exist.
content is of type [object XPCNativeWrapper [object Window]]
why doesn't content inherit the watch function?
http://bit.ly/4HXj2y seems to suggest that all objects have the watch
method

is there a way to watch the location?

Neil

unread,
Dec 29, 2009, 4:38:47 PM12/29/09
to
Hardip wrote:

>is there a way to watch the location?
>
>

Add a web progress listener and implement the onLocationChange method.

https://developer.mozilla.org/en/nsIWebProgressListener#onLocationChange

--
Warning: May contain traces of nuts.

0 new messages