logo

New Response

« Return to the blog entry

You are replying to:

    • avatar
    • Niel
    • Posted on Fri 29 Apr 2005 09:47

    Jake-

    There is an option in .open to set asynchronous to false. Of course, waiting for the response could be fatal if it never comes.

    Also, the loadXMLDoc is not called twice, but the processReqChange function is called multiple times. You could make processReqChange generic by removing your code and adding something like processResponse(response) to it. processResponse could be custom for each form/page. This would allow the loadXMLDoc and processReqChange to be moved to a library.

    For your checkModified you could break out the code to only check the modified date and using setTimeout check every few ms for the results, you would need to set a maxmium timeout and decide what to do if you never get a result back.

    Not sure if this was on your site or one of site you linked to, but this article really helped me get started with this

    {Link}

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: