ALaRiva
asked on
Javascript: Change form action of form on Opener
I'm terrible with Javascript, mainly because of the case-sensitivity, however, I'm now doing something that I have only done once or twice, but I can't remember exactly what syntax I used, so I'm not sure if I'm missing something or if I have a case-sensitive issue.
Here's what I have:
<script language="javascript">
if EVAL(window.opener.documen t.frmAdd)
{
window.opener.frmAdd.actio n = "AddInstallation.asp?ptype =postback" ;
window.opener.frmAdd.Submi t();
}
else {
window.opener.frmEdit.acti on = "EditInstallation.asp?ptyp e=postback ";
window.opener.frmEdit.Subm it();
}
</script>
What I'm trying to do is determine if a specific form exists on the opener (form that opened the popup) and if it exists, then change the action property of it, and submit the form.
Anyone see what I'm missing.
Thanks
-Anthony
Here's what I have:
<script language="javascript">
if EVAL(window.opener.documen
{
window.opener.frmAdd.actio
window.opener.frmAdd.Submi
}
else {
window.opener.frmEdit.acti
window.opener.frmEdit.Subm
}
</script>
What I'm trying to do is determine if a specific form exists on the opener (form that opened the popup) and if it exists, then change the action property of it, and submit the form.
Anyone see what I'm missing.
Thanks
-Anthony
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yeah I saw. What was that wmode thing anyways? I think that's a great solution that you got there :)
ASKER
It's the window mode of the flash file. If you set it to Opaque it allows other objects (i.e. DHTML Menus) to be displayed above it. Sort of getting around the Z-Index issue you mentioned.
There is also a way of saving the Flash File with an Opaque setting already defined, but I don't have Flash in front of me so I couldn't give direction on which menus to look at.
-Anthony
There is also a way of saving the Flash File with an Opaque setting already defined, but I don't have Flash in front of me so I couldn't give direction on which menus to look at.
-Anthony
ASKER
BTW - I posted a solution to that Flash File and DHTML Menu question you were involved in. Just in case you don't come across it.
-Anthony