asynchronous JS

Here is my first (semi) professional faceted search JS file.

I append semi to the professional because it is still a work-in-development. What I am especially uncertain about is how to do asynchronicity: how should I handle the queries to the HEK server? Mainly, I don’t want the program to hang if the server times out. Also, I want the code to continue doing stuff even if it has to wait for a few seconds to receieve a reply from the HEK server. I was initially planning to have the code “hang” on the XMLhttpRequest.send for a few hundred milliseconds; then, if no reply was had, have it just continue onto the other queries, then later return to again query for the event.

About ruoian27

Computer science student, taking Student Originated Software presently
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *