Sigma Php Ajax framework, Ajax Components, GUI Builder
May 23, 2012, 10:22:10 PM
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
Sigma Php Ajax framework, Ajax Components, GUI Builder
>
Sigma Visual GUI Builder & Library
>
Sigma Visual - Q&A
(Moderators:
steven
,
linb
) >
How to set focus on linb.UI.Dialog
Pages: [
1
]
« previous
next »
Print
Author
Topic: How to set focus on linb.UI.Dialog (Read 583 times)
fioleta
Newbie
Posts: 2
How to set focus on linb.UI.Dialog
«
on:
January 20, 2010, 02:27:19 AM »
Hello to all
First, sorry for my poor english, but I have one problem:
I create a login dialog whit ajax function. When user try to log and enter wrong password and/or username, the script popup linb.UI.Dialog.alert. When user click on OK button, the script close linb.UI.Dialog.alert, but I can't return focus on login dialog!
Please help me!
code:
_button6_onclick:function (profile, e, src, value) { //alert(this.username.getUIValue()); var mc=this; var post = new Object(); post.username=this.username.getUIValue(); post.username_value=this.username.getDomId(); post.password=this.password.getUIValue(); post.password_value=this.password.getDomId(); post.dialog=this.dialog1.getDomId(); linb.Ajax( "login.html", post, function(rep){ var obj = _.unserialize(rep); if (obj.error!="0") { linb.UI.Dialog.alert('Грешка',obj.error,function(){ mc.username.setUIValue(''); alert('close'); linb('username_input').focus(); //linb('linb.UI.Input-INPUT:a:').focus(); //document.getElementById("linb.UI.Input-INPUT:a:").focus(); //mc.username.focus(); }) } else { window.location.replace("http://<?$_SERVER["SERVER_NAME"]?>/index.html"); } }).start(); }
Logged
linb
Administrator
Hero Member
Posts: 435
Re: How to set focus on linb.UI.Dialog
«
Reply #1 on:
January 20, 2010, 04:22:40 PM »
dialog.activate()
Logged
fioleta
Newbie
Posts: 2
Re: How to set focus on linb.UI.Dialog
«
Reply #2 on:
January 21, 2010, 12:38:12 AM »
thank you!!!
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News & Announcements
-----------------------------
Sigma Visual GUI Builder & Library
-----------------------------
=> Sigma Visual - Knowledge Share
=> Sigma Visual - Q&A
=> Bug Report & Wishlist
-----------------------------
Sigma Grid
-----------------------------
=> Sigma Grid - Q&A
=> Show Case
=> Bug Report & Wishlist
-----------------------------
Other
-----------------------------
=> AJAX & JavaScript
Loading...