Tnx Eric
it works great but now the problem is how to find the tab?
var num = gBrowser.browsers.length;
for (var i = 0; i < num; i++)
{
var b = gBrowser.getBrowserAtIndex(i);
.....
}
it seem that b.currentURI.spec does not update when http-on-modify-request
sent !
so how can i find the tab which want to send data ?
On 7/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
Hi Joe,
You can observe the http-on-modify-request notification to be notified
before any data is sent to a server.
http://developer.mozilla.org/en/docs/Observer_Notifications#HTTP_requests
----- Original Message ----
From: joe ertaba <[EMAIL PROTECTED]>
To: Mozdev Project Owners List <[email protected]>
Sent: Wednesday, July 11, 2007 5:03:32 PM
Subject: [Project_owners] On Page Load
hi
i have found
http://developer.mozilla.org/en/docs/Code_snippets:On_page_load for
applying listener onpageload
but it seems that it doesnt send alert before any data send to server
is there any code that fire before any communication with server. i want
to filter before url send to server.
_______________________________________________
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
_______________________________________________
Project_owners mailing list
[email protected]
http://mozdev.org/mailman/listinfo/project_owners