By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,873 Members | 1,040 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,873 IT Pros & Developers. It's quick & easy.

window.opener issue with IE 7, Fire Fox 2.0 and Netscape 8

P: 2
I have the following code which works correctly in IE 6, but in IE 7, Fire Fox 2.0 and Netscape 8 it does not work.

I have a main page where a button calls this pop-up and uploads a file once you click the attach it should upload file and close the window and send back control to Main page.. But it is not happening..

CODE:
=========

<script LANGUAGE="JavaScript">
if ((window.opener != null) && (! window.opener.closed))
{
if (window.opener.aeObjects[1].DOM.body)
{
var c = window.opener.aeObjects[1].DOM.body.innerHTML;
window.opener.document.TicketResponse.AttachID.val ue = #AttachID#;
window.opener.document.PassAttachID.AttachID.value = #AttachID#;
window.opener.document.TicketResponse.LineID.value = #LineID#;
window.opener.document.PassAttachID.LineID.value = #LineID#;
window.opener.document.PassAttachID.Message.value = c;
window.opener.document.PassAttachID.submit();
//window.opener.showattach('show');
window.close();
}
//if (window.opener.soEditor != null)
//{var c = window.opener.soEditor.DocumentHTML('GetHTML');

//window.opener.document.TicketResponse.AttachID.val ue = #AttachID#;
//window.opener.document.PassAttachID.AttachID.value = #AttachID#;
//window.opener.document.TicketResponse.LineID.value = #LineID#;
//window.opener.document.PassAttachID.LineID.value = #LineID#;
//window.opener.document.PassAttachID.Message.value = c;
//window.opener.document.PassAttachID.submit();
//window.opener.showattach('show');
//window.close();
//}
else
{
window.opener.document.TicketResponse.AttachID.val ue = #AttachID#;
window.opener.document.PassAttachID.AttachID.value = #AttachID#;
window.opener.document.TicketResponse.LineID.value = #LineID#;
window.opener.document.PassAttachID.LineID.value = #LineID#;
window.opener.document.PassAttachID.Message.value = window.opener.document.TicketResponse.Response.val ue;
//window.opener.document.PassAttachID.submit();
//window.opener.showattach('show');
window.close();
}
}
</script>
May 31 '07 #1
Share this Question
Share on Google+
5 Replies


acoder
Expert Mod 15k+
P: 16,027
What error messages are you getting?
Jun 1 '07 #2

P: 2
What error messages are you getting?
In IE 7, I get the Javascript warning at botton and it states

'window.opener.aeObjects.1' is null or not an object

In Firefox, it must be siomilar but don't know where to see that error...
Jun 1 '07 #3

acoder
Expert Mod 15k+
P: 16,027
In IE 7, I get the Javascript warning at botton and it states

'window.opener.aeObjects.1' is null or not an object

In Firefox, it must be siomilar but don't know where to see that error...
If you get the Firebug extension, it'll be very helpful for debugging.

What is aeObjects? Perhaps you could post the code in the parent window?
Jun 1 '07 #4

P: 1
I've have firebug installed and inspected the code. aeobjects in an array. Firebug is a wonderful product but yields no more insight than the standard firefox error console (at least in this case) :)
Jun 1 '07 #5

acoder
Expert Mod 15k+
P: 16,027
I've have firebug installed and inspected the code. aeobjects in an array. Firebug is a wonderful product but yields no more insight than the standard firefox error console (at least in this case) :)
Can you post the code in the parent window?

PS. are you a different person with (miraculously) the same problem or have you re-subscribed with a different name?
Jun 4 '07 #6

Post your reply

Sign in to post your reply or Sign up for a free account.