IE Script works OK at job but not at home?

M

M.L.

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.type
== "checkbox" )
{
if (
top.Folder.vpanel.document.forms[0].elements.checked )
{
ReportArraySize = ReportArraySize + 1;
ReportsSelected[ReportArraySize] =
top.Folder.vpanel.document.forms[0].elements.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.type
== "checkbox" )
{
if (
top.Folder.vpanel.document.forms[0].elements.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.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;
}
 
R

Richard Cornford

M.L. wrote:
"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 balance of probability is that that error message also included a
line number, which contributes towards locating the offending code.

pwindow = new Object(
);
pwindow.focus();
<snip>

But those two lines will produce that error, as the Object object does
not support a focus method. However, that is insane code to have been
deliberately authored and the probability is that it is the result of
some sort of pop-up or advertising blocking proxy.

Richard.
 
M

M.L.

M.L. wrote:


The balance of probability is that that error message also included a
line number, which contributes towards locating the offending code.


<snip>

But those two lines will produce that error, as the Object object does
not support a focus method. However, that is insane code to have been
deliberately authored and the probability is that it is the result of
some sort of pop-up or advertising blocking proxy.

Richard.

Thanks for replying, Richard. I'm trying to help a friend troubleshoot
this problem and she said that the js print function was working
previously so I don't understand why the erroneous javascript didn't
cause a problem before.

However, she claimed she was having trouble printing from the printer
during this time, but I had no problems with it (except an
intermittent paper jam) when I printed from it. I wonder if the js
error might have resulted from the state of her printer.

There are two things I did to her system that might have resulted in
the js print error:

1.) I installed a wireless router Internet connection (which is
working fine)

2.) I installed a lot of critical Windows updates (which should have
been needed)

I'd like to know if any of my configuration changes might have created
the problem.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top