473,385 Members | 1,154 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

javascript\buttonevent

gh
I have the following js in the onclick event of a button to open another
form, for the user to select a customer from.

Response.Write("<script language='javascript'>
window.showModalDialog('SelectCustomer.aspx','Sele ct
Customer','dialogHeight:550px; dialogWidth: 700px; edge: Raised; center:
Yes; scroll: Yes;');</script>");

In the Select Customer Page I would like to pass back an Object or a
value of True to be able to do more processing with the customer
information, after the select customer page is closed. Here is the code
I have in the event of the Close button on the Select Customer page:

Response.Write("<script language='javascript'>window.close();</script>");

What needs to be added to the js to make this happen or is there another
way?

Thanks
Nov 19 '05 #1
2 808
Hi

Do something like this

var returnDepot =
window.showModalDialog("SignOnDepot.htm","","dialo gHeight: 360px;
dialogWidth: 345px;status: no;scroll: Yes;resizable: yes;" + pos);

and

window.returnValue = "xxxx";

Regards,

Daniel Roth
MCSD.NET

Nov 19 '05 #2
gh
Dan:

If I have an ASP.NET textbox on my parent page (textBox1) and in the js
function use

if (returnDepot != null) document.getElementById(textBox1).value =
returnDepot;

Will this put the return value in the textBox? What I would like to do
is have an ASP.NET button on the parent page get clicked from the js
function if a value is passed back.

Thanks

da********@gmail.com wrote:
Hi

Do something like this

var returnDepot =
window.showModalDialog("SignOnDepot.htm","","dialo gHeight: 360px;
dialogWidth: 345px;status: no;scroll: Yes;resizable: yes;" + pos);

and

window.returnValue = "xxxx";

Regards,

Daniel Roth
MCSD.NET

Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.