J
jkearney21
Hi,
i am having trouble with some syntax.
In my html when an image is clicked i have the follwoing code in a page
called BreakDownReportFilter.aspx.
onclick="javascript:OpenWindow('EquipmentSearch.aspx?pageName=BreakDownReportFilter',
'BreakDownReportFilter','resizable=yes,scrollbars=yes', 700, 200);"
In my javascript code i have the following:
function OpenWindow (URL, WinName, Features)
{
var newWind = window.open(URL, WinName, Features);
newWind.focus();
}
In the new window it opens (EquipmentSearch) when this window is
closing i what what is selected to be put into a textbox on the calling
page (BreakDownReportFilter) so i have this line of javascript.
window.opener.document.BreakDownReportFilter.txtEquipmentNumber.text =
equipNo;
I am getting an error for some reason. Can anyone spot what it is? I am
getting undefined when i try
alert(window.opener.document.BreakDownReportFilter)
Many Thanks
i am having trouble with some syntax.
In my html when an image is clicked i have the follwoing code in a page
called BreakDownReportFilter.aspx.
onclick="javascript:OpenWindow('EquipmentSearch.aspx?pageName=BreakDownReportFilter',
'BreakDownReportFilter','resizable=yes,scrollbars=yes', 700, 200);"
In my javascript code i have the following:
function OpenWindow (URL, WinName, Features)
{
var newWind = window.open(URL, WinName, Features);
newWind.focus();
}
In the new window it opens (EquipmentSearch) when this window is
closing i what what is selected to be put into a textbox on the calling
page (BreakDownReportFilter) so i have this line of javascript.
window.opener.document.BreakDownReportFilter.txtEquipmentNumber.text =
equipNo;
I am getting an error for some reason. Can anyone spot what it is? I am
getting undefined when i try
alert(window.opener.document.BreakDownReportFilter)
Many Thanks