Friday 15 August 2014

asp.net - jquery ui dialog position -


How can I determine the status of the jquery ui dialog when I click on the end of my form then the status of the dialog At the top of the page ..

Here's how I call:

  & lt; Div id = "dialog" style = "display: none;" & gt; & Lt; H1 & gt; Transactions successful! & Lt; / H1> & Lt; Br / & gt; & Lt; H3 & gt; Thank you. & Lt; / H3 & gt; & Lt; / Div & gt; ScriptManager.RegisterStartupScript (This, this.GetType (), "showmessage", "jQuery ('# dialogue'). Dialog ({dialogClass: 'no-off', title: 'registration successful', auto open: true, height : 300, width: 600, model: true, dragable: true, resizable: false, button: {OK: work} {window.location.replace ('Login.aspx');}}}); " , truth);   

Please help ...

You use alternatives For the parameter POSITION for:

  $ (".selector") .dialog ({status: {my: "left top", at: "left Bottom ", of: button}});   

See for more information.

Edit the example based on the existing code:

  ScriptManager.RegisterStartupScript (This, this.GetType (), "Showmessage", "showmessage", "jQuery (' Dialog ('Dialog', 'Title: Registration Successful', Auto Open: True, Height: 300, Width: 600, Draggable: Correct, Resizable: False, Status: {my: "Left top", at: "left bottom", of: button} // jqueryUI will need to be optimized for your needs., Button: {OK: function () {window.location.replace (' Login.aspx ');}}}); ", true);    

No comments:

Post a Comment