SpeedBWild
Programmer
On click of a button a open a new window with tue code below.
Me.PageBody.Attributes.Remove("onload")
Session("FileName") = fileName
Me.PageBody.Attributes.Add("onload", "jsLoadWindow();")
Here is the jsLoadWindow function as well.
function jsLoadWindow() {
var retval="";
var features= "dialogWidth=650px,scrollbars=yes,toolbars=no,status=yes,Height=200px,top=0";
retval=window.showModalDialo('ManageJobDetail.aspx',retval, features);
alert(retval);
window.execScript("__doPostBack('ManageJobDetail','" + retval +"')","JavaScript");
}
The code is erroring on the window.execScript() in the jsLoadWindow function. When I look at the source code I don't see the function __doPostBack() How does that get there. Am I missing something else on my page? I know the _doPostBack get generated automatically, but I don't know what causes it to be generated.
I have an alert in my jsLoadWindow function so I know I am getting the correct return value for the child page. If I comment out the window.execScript I don't get any error, but as you can guess my pgae doesn't do what I need it to.
Any ideas?
Thanks,
Me.PageBody.Attributes.Remove("onload")
Session("FileName") = fileName
Me.PageBody.Attributes.Add("onload", "jsLoadWindow();")
Here is the jsLoadWindow function as well.
function jsLoadWindow() {
var retval="";
var features= "dialogWidth=650px,scrollbars=yes,toolbars=no,status=yes,Height=200px,top=0";
retval=window.showModalDialo('ManageJobDetail.aspx',retval, features);
alert(retval);
window.execScript("__doPostBack('ManageJobDetail','" + retval +"')","JavaScript");
}
The code is erroring on the window.execScript() in the jsLoadWindow function. When I look at the source code I don't see the function __doPostBack() How does that get there. Am I missing something else on my page? I know the _doPostBack get generated automatically, but I don't know what causes it to be generated.
I have an alert in my jsLoadWindow function so I know I am getting the correct return value for the child page. If I comment out the window.execScript I don't get any error, but as you can guess my pgae doesn't do what I need it to.
Any ideas?
Thanks,