2013-02-18 27 views
4

我想使用gwt(google web toolkit)在我的網站中使用記住我的選項。我想當用戶填寫身份證和密碼,並點擊登錄比瀏覽器選項(彈出)打開如記住密碼或現在不。記得我的瀏覽器選項?

+0

是關於彈出的問題或記着我複選框? – 2013-02-18 10:15:59

+0

關於彈出式..... – ruchi 2013-02-18 10:22:33

+0

也許這會幫助你:http://stackoverflow.com/questions/2778350/let-browser-save-username-password-values-in-a-login-form – qben 2013-02-18 12:06:32

回答

2

屬性AutoComplete添加到您的輸入字段

usernamebox.getElement().setAttribute("autocomplete", "on"); 

passwordbox.getElement().setAttribute("autocomplete", "on"); 
+0

它不工作....什麼都沒有發生...... – ruchi 2013-02-18 11:14:32

+0

您正在使用gwt rpc或form.Submit? – 2013-02-18 11:31:54

+0

爲了獲得該功能,您必須提交表單,AJAX(rpc)將不會識別該功能。 – 2013-02-18 11:32:44