Re: Any JavaScript Experts?
Re: Any JavaScript Experts?
- Subject: Re: Any JavaScript Experts?
- From: James Cicenia <email@hidden>
- Date: Fri, 2 Sep 2005 08:55:12 -0500
DARN -
I had the form name as Form1 and not form1... that little typo cost
me about 12 hours!!!!
Thanks for answering... made me look closer.
- James Cicenia
On Sep 2, 2005, at 8:25 AM, Seejo Pylappan wrote:
You should be able to get the opener reference using the
window.opener in the pop up window. Since certain browsers are
pretty strict about popup window parent communications.. you
probably have to have a function in the parent window which submits
the form... say In the popup window, you have a button with a
onClick() binding which calls the function onClickFunction()
parentWindow script code segment
.
.
function submitFormWithValues(value 1, value 2) {
.
// your implementation etc and then submit the form
.
}
popup window script code segment
.
.
function onClickFunction() {
// get hold of values you want
window.opener.submitFormWithValues(val1, val2);
}
In this case you can get hold of the values you need in the
onClickFunction before you submit the values to the parent window.
Hope it helps.
-Seejo
On Sep 2, 2005, at 9:11 AM, James Cicenia wrote:
Hello -
I am trying to get from my popup window, the "opener" reference so
I can submit the opener window to basically get any edits submitted.
Seems like no matter what I do.... opener is undefined.
Anyone have a good way to open a popup window and submit the
opener/parent window?
I have spent way too many hours on this little problem
Thanks,
James Cicenia
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden