Hello everyone -
I am having problems referencing a webdialogwindow from client side BLOCKED SCRIPT
function uwg_Forecast_CellClickHandler(gridName, cellId, button){
var x = document.form1.htmltxt_X.value;
var y = document.form1.htmltxt_Y.value;
var dialog = $find('<%= wdw_History.ClientID %>');
dialog.setLeft(x);
dialog.setTop(y);
webDialogWindow.set_windowState($IG.DialogWindowState.Hidden, false);
}
I am getting the js error object does not support this Property or method on dialog.setleft.
x and y are populated with numeric values. Any incite would be greatly appreciated!!!
Thanks -
Patrick
Update:
This code does not trigger an error but doesn't position the dialog window:
alert("y: " + y);
document.getElementById('<%= wdw_History.ClientID %>').setAttribute("Left", x);
dialog.set_windowState($IG.DialogWindowState.Normal);
//dialog.setLeft(x);
// dialog.setTop(y);
//webDialogWindow.set_windowState($IG.DialogWindowState.Hidden, false);
Try this:
dialog.set_left(100);
dialog.set_top(200);
Your the man Sung! Got the job done with:
dialog.set_left(x);
dialog.set_top(y);
<%= wdw_History.ClientID %> :is required because the wd is in an ultrawebtab.
I was trying to find a list of members for the webdialogbox in the online documentation but all I could find were the get methods. Could you post a link to that documentation?
TIA -