By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,776 Members | 1,246 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,776 IT Pros & Developers. It's quick & easy.

unspecified error when accessing 'document' after file download

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.