Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass back a value #49

Open
stevyrino opened this issue Mar 8, 2020 · 1 comment
Open

How to pass back a value #49

stevyrino opened this issue Mar 8, 2020 · 1 comment

Comments

@stevyrino
Copy link

I am trying to make an old IE form work with a showModalDialog. This worked well with IE. I have a modal form that, based on a selected criteria, makes a request to a database for a primary key.
I can't figure out how to pass that value back to the parent form. I figure I have to stuff it somewhere but in the original code it was done with "window.returnValue = key;". This does not work with the polyfill. Any help would be appreciated. I am thinking the polyfill should be a direct replacement for the old IE showModalDialog.
Parent form:
(function() {
pParty = window.showModalDialog("../Search.htm", "SearchParty", "resizable:yes;status:no;dialogHeight:550px;dialogWidth:600px");
})();

Dialog prior to clicking on close button:
var arr = new Array(getHTMLText(mRow.cells[1]), getHTMLText(mRow.cells[2]), getHTMLText(mRow.cells[3]));
window.returnValue = arr;

@stevyrino
Copy link
Author

PS: I am using Chrome browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant