Click to See Complete Forum and Search --> : Operation is not allowed when the object is closed


JScriptUser
07-01-2003, 01:22 PM
Hi!

I created a text file where html file fetches data to display dynamically with the buttons. Oddly, the first time I execute the code, it gives me a message that says "Operation is not allowed when the object is closed". If I go to other page and come back and try again, it works.

I think that it cannot see the text file because it is closed and once I access different page and come back, for some reason, it is open for access.

I don't understand why this happens, but I surely want to fix this problem and open the object(recordset) at the first time. As you can see in the html file, I use recordset property in javacript to access the text file.

I've attached txt file here is a link to the page.

http://www.nmsu.edu/pment/recordset.html

If you have an answer, I appreciate your help! Have a good day!

Khalid Ali
07-01-2003, 01:58 PM
I am guessing you are using ActiveXCOntrol to read file,you wil have to see whats appropriate to open file in MS environment..because JavaScript itself does nto have the ability to read / write files