473,473 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

unspecified error when accessing 'document' after file download

I have some javascript code in my page that calls the
document.getElementById method. This usually works fine however in IE 6,
after I have downloaded a file using the File Download dialog, I get an
unspecified error.

After a bit of testing I have found that whenever I try to access 'document'
this error occurs but only when the page is within a frame.

Does anyone know why this would be happenning?

Thanks

SuzyB
Jul 23 '05 #1
2 1826
Try this:
top.frames['myframe'].document.getElementByID()

On Thu, 17 Mar 2005 09:33:09 -0000, "Suzanne Boyle"
<Su**************@NOSPAMyahoo.co.uk> wrote:
I have some javascript code in my page that calls the
document.getElementById method. This usually works fine however in IE 6,
after I have downloaded a file using the File Download dialog, I get an
unspecified error.

After a bit of testing I have found that whenever I try to access 'document'
this error occurs but only when the page is within a frame.

Does anyone know why this would be happenning?

Thanks

SuzyB


Jul 23 '05 #2
If you have frame named "guestbook" and it contains form
named "comments" and textarea named "entry" then you can access its
value with:

x = top.guestbook.comments.entry.value;


"Suzanne Boyle" <Su**************@NOSPAMyahoo.co.uk> wrote in message news:<d1*******************@news.demon.co.uk>...
I have some javascript code in my page that calls the
document.getElementById method. This usually works fine however in IE 6,
after I have downloaded a file using the File Download dialog, I get an
unspecified error.

After a bit of testing I have found that whenever I try to access 'document'
this error occurs but only when the page is within a frame.

Does anyone know why this would be happenning?

Thanks

SuzyB

Jul 23 '05 #3

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

Similar topics

3
by: bsinni | last post by:
Hello, I have a web page page that is in a frame with top and bottom nav bars. When I click on my "Export to csv" button, the "File Download" window appears and the user is given the following...
1
by: puneet.bansal | last post by:
Hi, I have a frameset and in one of the frames I have two functions. This code resides in a frame named leftFrame - //This function downloads an Excel report function downloadExcelReport() {...
4
by: RM | last post by:
Had VS .Net 2002 installed on W2k Server SP3 and supported a number of web sites. Installed VS .Net 2003 on Friday and now all web sites using .Net & MS ACCESS get this strange error upon open. ...
1
by: Billy Hart | last post by:
I am getting this error on my win 2000 server when a .net app that a programmer in my office developed. I have read other posts about the issue but the resolutions to those posts did not solve the...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.