Sorry for any inconvenience from the poor description about the
question. I am still new to ubiquity and javascript.

Fortunately, I have found the solution. it's only javascript issue.
We could get the dialog by nsIPromptService.

prompts = Cc["@mozilla.org/embedcomp/prompt-service;1"].getService
(Ci.nsIPromptService);
var username = {value:uname};
var password = {value:passwd};
var remember = {value: false};
prompts.promptUsernameAndPassword(null, "Login...", "Enter your
username and password:",
                                                          username,
password, "Remember Me", remember);

Regards
wave

On Sep 18, 6:25 pm, wave <[email protected]> wrote:
> Hi all,
>
> Some web services only provide one way to make client accomplish the
> sign in step by accessing "https://www.somewebsite.com?
> user=simpson&passwd=123456". The services neither return 403 error nor
> redirect to web login page if the authorization failed. So, built-in
> password input dialog doesn't work in the case.
>
> I have to let user input the password as plain text on command line,
> just like as "ws-login simpson 123456". It is discomfortable.
>
> Do you have any elegant way to let user input the password?
>
> Thanks
> wave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"ubiquity-firefox" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/ubiquity-firefox?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to