J
Jeff
I'm hoping that someone can help me. I know little javascript and only need
a very small amount in a visual web 2005 application using vb. I'm not sure
whether my problem is related to the java or to the vb, but I'm thinking
that it may likely be the vb.
I'm attempting to open a java modal dialog box from a parent window. I have
most of the dialog box working with one problem. The dialog box opens fine
with the code below associated with the parent. In the child window, I have
a button with the simple self.close()
code associated with it. Obviously, I want to use the button to close the
child window (I've also tried window.close()). When the button is clicked,
the dialog box closes, but the info.aspx page is then re-displayed in
another regular window that opens. I found some reference to the problem on
the web with an explanation that it only occurs in IE after version 5, but
I've found no solution. ...and it still occurs in both IE6 and IE7.
Can someone tell me what I'm missing?
In parent window
Button1.OnClientClick = ("window.showModalDialog('Info.aspx','
','dialogHeight:150px,dialogWidth:200px');")
In the child window
Button1.OnClientClick = ("self.close();")
Thanks in advance
Jeff
a very small amount in a visual web 2005 application using vb. I'm not sure
whether my problem is related to the java or to the vb, but I'm thinking
that it may likely be the vb.
I'm attempting to open a java modal dialog box from a parent window. I have
most of the dialog box working with one problem. The dialog box opens fine
with the code below associated with the parent. In the child window, I have
a button with the simple self.close()
code associated with it. Obviously, I want to use the button to close the
child window (I've also tried window.close()). When the button is clicked,
the dialog box closes, but the info.aspx page is then re-displayed in
another regular window that opens. I found some reference to the problem on
the web with an explanation that it only occurs in IE after version 5, but
I've found no solution. ...and it still occurs in both IE6 and IE7.
Can someone tell me what I'm missing?
In parent window
Button1.OnClientClick = ("window.showModalDialog('Info.aspx','
','dialogHeight:150px,dialogWidth:200px');")
In the child window
Button1.OnClientClick = ("self.close();")
Thanks in advance
Jeff