Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Testing for synchronous saving using objDOM

Status
Not open for further replies.

Lebatsirk

Programmer
Jun 8, 2001
2
GB
Hi,

I've recently been passed an copy of an error message that occurs occasionally when a 'ratings' page is submitted. I have determined from the error message that it is most likely because of two people submitting the form at the same time. Basically there is a function that adds the new ratings to the database, and then a function that writes an XML file to be used to generate a new active server page.

I have written a function to handle the error but to test it I need to be able to somehow get the object (which is an MSXML.DOMDocument object) objDOM.save method to run synchronously.

I have checked the methods for this object, in the hope that there was a nice 'open' method I could use, but there isn't.

Does anyone have any ideas on how I could test this please?

Thanks in advance...
 
???? Maybe ????

waitForResponse Method

Allows the requesting server to suspend execution while waiting for an asynchronous send operation to complete.

 
Thanks for the suggestion Roger. Unfortunately the object I am using doesn't support the method, but thanks for pointing me in the right direction. I am now going to see if there is a similar method that is supported by the object.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top