Hi. I visit a favorite real estate web site using IE6 but can't get a
js function on it to work at home. It works fine on the job. At home I
placed the site into my Trusted Zone and allow or prompt for all
ActiveX and Javascript functions. There is no firewall turned on at
home when visiting the site. I don't understand why the behavior is
different.
The password-protected website is http://mlsni.rexplorer.net. When I
enter Form data and press the "Format Print File" image button I get
the following js error in the lower left corner of the browser"
"object doesn't support this property or method"
I can't begin to diagnose the problem of such a vague error. Any help
on this descrepancy will be appreciated. Thanks in advance.
************************************************** *******************
The image button on the web page points to the following HTML js
function call:
"Select FILE and PRINT from the menu
bar of the new window to print
the report."
" When you are finished printing
close the new print window."
<a href=# onClick="top.DoPrint()"><IMG src="/cmps$art/print.gif"
border="0"></a>
************************************************** *********************
function DoPrint() {
if ( FormatState == "CUSTOM" )
{
ReportArraySize = 0;
ReportsSelected = new Array;
OrderSelected = new Array;
for ( i=0; i<top.Folder.vpanel.document.forms[0].length; i++ )
{
if ( top.Folder.vpanel.document.forms[0].elements[i].type
== "checkbox" )
{
if (
top.Folder.vpanel.document.forms[0].elements[i].checked )
{
ReportArraySize = ReportArraySize + 1;
ReportsSelected[ReportArraySize] =
top.Folder.vpanel.document.forms[0].elements[i].name;
OrderSelected[ReportArraySize] =
top.Folder.vpanel.document.forms[0].elements[i+1].value;
if ( OrderSelected[ReportArraySize] == 0 )
OrderSelected[ReportArraySize] = ReportArraySize;
}
}
}
}
if ( ( ReportArraySize == 0 ) & ( CustomProcess == "PROSPECT" ) &
( ListNumbers.length == 0 ) )
{
searchProspects("", "print")
return true;
}
DoingPrint = 1;
rquery="";
for ( j=0; j<100; j++ )
{
for ( i=0; i<top.Folder.vpanel.document.forms[0].length; i++ )
{
if ( top.Folder.vpanel.document.forms[0].elements[i].type
== "checkbox" )
{
if (
top.Folder.vpanel.document.forms[0].elements[i].checked )
{
if ( (
top.Folder.vpanel.document.forms[0].elements[i+1].value == j ) |
( ( j == 0 ) & (
top.Folder.vpanel.document.forms[0].elements[i+1].value == "" ) ) )
{
if ( rquery.length > 0 )
{
if ( ListNumbers.length > 0 ) rquery =
rquery + "|";
else if ( CustomProcess == "SPROSPECT" )
rquery = rquery + ",";
else if ( FormatState == "CUSTOM" ) rquery
= rquery + "|";
else rquery = rquery + "|";
}
/* if ( ( ( CustomProcess != "SPROSPECT" ) & (
FormatState != "CUSTOM" ) ) |
( ListNumbers.length > 0 ) ) rquery =
rquery + "option="; */
if ( ( CustomProcess != "SPROSPECT" ) & (
FormatState != "CUSTOM" ) )
rquery = rquery + "option=";
else if ( ( FormatState == "FIXED" ) & (
ListNumbers.length > 0 ) ) rquery = rquery + "option=";
else if ( ( CustomProcess == "SPROSPECT" ) & (
FormatState == "CUSTOM" )
& ( rquery.length > 0 ) ) rquery =
rquery + "%23";
rquery = rquery +
top.Folder.vpanel.document.forms[0].elements[i].name;
}
}
}
}
}
if ( rquery == "" )
{
alert ( "You must select a report option." );
return false;
}
BuildReportQuery()
if ( ( ( CustomProcess == "SPROSPECT" ) & ( ListNumbers.length ==
0 ) ) | ( FormatState == "CUSTOM" ) )
{
if ( FormatState == "CUSTOM" )
{
if ( query.length == 0 ) query = rquery;
else query = rquery + "|search=" + query;
searchProspects( query, "CUSTOM" );
return true;
}
searchProspects(rquery,"print");
return true;
}
i = rquery.indexOf("REPORT ");
if ( i < 0 )
{
rquery = rquery + "/PRINT";
if ( ListNumbers.length > 0 ) rquery = rquery + "/SELECT";
}
if ( query.length == 0 )
{
alert( "No search criteria has been entered to qualify data
for a report. ");
return true;
}
query = "/"+CityName+"/function."+ReportFunction+"?" + rquery +
query;
if ( FormatState == "FIXED" )
{
query = query + Personalize;
if ( top.SortFields.length > 0 ) query = query + "/ORDER=" +
SortFields;
}
winname=query;
pwindow = new Object(
);
pwindow.focus();
return true;
}