Hi all,
I am a novice with javascripts. The problem I am facing is as follows:
I am trying to get the the value of one of the input fields of a window from it's child window. I am making use of "window.opener" for the same as follows:
val = window.opener.test1.sysname.value
alert(val)
where test1 is the name of the Frame in the parent window , which has the input field sysname in it.
This doesn't work. The script stops execution at this point and no alert box is thrown. No error messages also.
what I am curious here is, window.opener just works fine with the other forms in the parent document and returns the field values in the other forms. Only with one the forms(ie, test1) it dosn't work. What could be the probable reason?
please shed some light into this....This is a bit urgent. Please revert back to me for any additional input from my end.
Thanks in advance.
I am a novice with javascripts. The problem I am facing is as follows:
I am trying to get the the value of one of the input fields of a window from it's child window. I am making use of "window.opener" for the same as follows:
val = window.opener.test1.sysname.value
alert(val)
where test1 is the name of the Frame in the parent window , which has the input field sysname in it.
This doesn't work. The script stops execution at this point and no alert box is thrown. No error messages also.
what I am curious here is, window.opener just works fine with the other forms in the parent document and returns the field values in the other forms. Only with one the forms(ie, test1) it dosn't work. What could be the probable reason?
please shed some light into this....This is a bit urgent. Please revert back to me for any additional input from my end.
Thanks in advance.