At the point when on-modify-request fires the URI is immutable. You won't be able to change the address (or GET parameters) using this technique.
The tamperdata source may be a useful example of using the observer service though. Adam http://www.mozdev.org/source/browse/tamperdata/src/chrome/content/tamperdata.js?rev=1.14&content-type=text/x-cvsweb-markup On 13/06/07, Amin Eft... <[EMAIL PROTECTED]> wrote: > hi > > i add a observer in my extension: > > var observerService = > Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService > ); > > observerService.addObserver(MyObserver, "http-on-modify-request", false); > ..... > observe: function(aSubject, aTopic, aData) > > > any body can help me find aSubject properties like:.cancle .URI .loadFlags > ,.... > > > i want to change url of specific site. > > if(aSubject.URI.spec='www.mysite.com') change url > > > > > _______________________________________________ > Project_owners mailing list > [email protected] > http://mozdev.org/mailman/listinfo/project_owners > > _______________________________________________ Project_owners mailing list [email protected] http://mozdev.org/mailman/listinfo/project_owners
