return value from showmodaldialog
-
hi all dev's i have a problem and want some help, i have a showmodaldialog and its working fine but when i finish from it and click on button (ReName) the showmodaldialog take fulll size page and stops in it, now am providing the code to be more clear for u:- (child page) function ReturnParam() { var password= window.dialogArguments; var old = document.getElementById("tbPasswordConfirm").value; if(password!=old) { alert('Password does not match....'); } else { var param = document.getElementById("tbNewPassword").value; alert('New Password have changet to ' + param); window.returnValue = param; window.close(); } } what seems to be the problem.....!!!!???
-
hi all dev's i have a problem and want some help, i have a showmodaldialog and its working fine but when i finish from it and click on button (ReName) the showmodaldialog take fulll size page and stops in it, now am providing the code to be more clear for u:- (child page) function ReturnParam() { var password= window.dialogArguments; var old = document.getElementById("tbPasswordConfirm").value; if(password!=old) { alert('Password does not match....'); } else { var param = document.getElementById("tbNewPassword").value; alert('New Password have changet to ' + param); window.returnValue = param; window.close(); } } what seems to be the problem.....!!!!???
use
window.opener='self';
window.close();Setting
window.opener
will ensure that the window will be closed on nextwindow.close
call. ;)Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascript -
use
window.opener='self';
window.close();Setting
window.opener
will ensure that the window will be closed on nextwindow.close
call. ;)Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.
My Latest Articles-->** Simplify Code Using NDepend
Basics of Bing Search API using .NET
Microsoft Bing MAP using Javascriptthx, that did work :)