473,405 Members | 2,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

IE Script works OK at job but not at home?

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;
}
Jul 23 '05 #1
2 1548
M.L. wrote:
<snip>
"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.

<snip> 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.
Jul 23 '05 #2
On Mon, 12 Apr 2004 20:33:21 +0100, "Richard Cornford"
<Ri*****@litotes.demon.co.uk> wrote:
M.L. wrote:
<snip>
"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.

<snip>
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.


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.
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Preston Crawford | last post by:
I'm looking to quickly get a photo album online. Very simple, thumbnails, a few pages, maybe a description, but hopefully a small script that's easy to edit and work into my existing site. I know...
0
by: Gabriel Cooper | last post by:
In one of my python programs has a data file I need to load. My solution was to say: if os.path.exists(os.path.join(os.getcwd(), "config.xml")): self.cfgfile = os.path.join(os.getcwd(),...
10
by: lawrence k | last post by:
I've got a script called makeRss.php. It works fine if I try to open it with my browser. It makes an RSS feed for every page on my site. You can see it working here: ...
0
by: John Ling | last post by:
Hello, I have been trying to install an application which requires Python: http://chip.dfci.harvard.edu/~wli/MAT/ My environment is AIX 5.2. Below is the section of the setup that has failed,...
3
by: jonathan184 | last post by:
script is printing output correct but not the actual output. Basically what the script is doing it taking a 1 flat file then it is splits the file into smaller files in 1000 record increments ...
2
by: jonathan184 | last post by:
Hi I am trying to create a shell script that will look for a contracthead file first and if the contract head file does not exist on day1 exit script. Now on day2 if contracthead exists or...
3
by: uzzi | last post by:
I don't know how to make a php script to work via cron...I want to make it run daily...My server API is CGI/Fast CGI.I have hosting from godaddy and in the help section i found that i have to specify...
4
by: jonathan184 | last post by:
Hi I have a perl script, basically what it is suppose to do is check a folder with files. Now the files are checked using a timestamp with the command ls -l so the timestamp in this format is...
7
by: imtmub | last post by:
I have a page, Head tag Contains many Scripts and style sheet for Menu and Page. This code working fine and displaying menus and page as i wanted. Check this page for reference....
10
by: Michel Leunen | last post by:
Hi, I'm trying to write a python script for Nautilus. To get the list of files selected in the Nautilus right pane, you use the $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS environment variable which is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.