Stanimir Stamenkov wrote:
Sun, 17 Jul 2011 20:58:16 +0300, /Stanimir Stamenkov/:Now I've created and placed a custom button on my toolbar with the following code to execute: let lm = Components.classes["@mozilla.org/login-manager;1"] .getService(Components.interfaces.nsILoginManager); let forms = content.document.forms; for (let i = 0; i < forms.length; i++) { lm.fillForm(forms[i]); }Here's already revised code to handle forms found in frames, additionally: let lm = Components.classes["@mozilla.org/login-manager;1"] .getService(Components.interfaces.nsILoginManager); function fillForms(doc) { let forms = doc.forms; for (let i = 0; i < forms.length; i++) { lm.fillForm(forms[i]); } } fillForms(content.document); let frames = content.frames; for (let i = 0; i < frames.length; i++) { fillForms(frames[i].document); }
Do I used both the above or just the last one? And I need the custom buttons extension? -- JD.. _______________________________________________ support-seamonkey mailing list [email protected] https://lists.mozilla.org/listinfo/support-seamonkey

