// The client event Moved takes two parameters sender and e // sender is the object which is raising the event // e is the MoveEventArgs function WDW1_Moved(sender, e) { var wdw = $find("WebDialogWindow1"); //Gets old left position var oldX = e.get_oldX(); //Gets old top position var oldY = e.get_oldY(); //Gets new left position var newX = e.get_x(); //Gets new top position var newY = e.get_y(); window.status = "Old postion : X(" + oldX +")Y(" +oldY + ") , New position : X(" +newX +")Y(" + newY +")"; }
Me.WebDialogWindow1.ClientEvents.Moved = "WDW1_Moved"
this.WebDialogWindow1.ClientEvents.Moved = "WDW1_Moved";