I have made one user authentication module on the right click of one image.
That login form opens up in the form of a dialog box. My problem is that I want to re-postion the dialog box. It is always displayed in the center of the page but as my application is a mobile application so I wish to get it displayed in a specified position where my other forms are displayed. Can anyone suggest a method with which I can define a position to my dialog boxes.
Please help !
Thanks a ton, in advance !
Just set the left and top properties to whatever you require, and make sure autoCenter is set to false.
Re:Isomorphic
Thanks for the reply Isomorphic, now the issues arises that the dialog whose position I am setting is Login Dialog. Thats a built in Dialog.
I am attaching code for your reference.
function initLogin() {
loginOk= false;
isc.showLoginDialog(function (credentials, dialogCallback)
{
var request = isc.RPCRequest.create(
{
actionURL: "checkcred.php",
httpMethod: "GET",
//contentType: "text/xml",
params: {name: credentials.username,
pass: credentials.password},
useSimpleHttp: true,
serverOutputAsString: true,
callback: "checkLogin(rpcResponse,data, rpcRequest)"
,myDialogCallback : dialogCallback
})
isc.RPCManager.sendRequest(request) ;
})}
Please help I need to place it within my application…
showLoginDialog has an optional second parameter that you can use to supply properties for the dialog - in fact this is true of all SmartClient’s built-in dialogs. So, something like
{ left: 10, top: 10, autoCenter: false }
passed as a second parameter to the showLoginDialog call would do the trick.