Hello, I've updated Dan's code to now support the multitasking feature. Below is a summary of what was done:
1) Added a cancel() method. This can be used to cancel or stop a task at any time: // note: both get() and post() now returns an id var id=ioelm.post(url,data,fn) ..... ioelm.cancel(id) // user can cancel task if needed 2) NS4 will convert a post request to a get request. This is due to the fact that NS4 does not currently supports the post feature :( Note: I was trying to get the ioFrame hack to work in NS4 (saved as ioelement-ns4-post.js) but I was a nightmare. IMO I don't think that many persons will ever need to use the post feature from ns4 - ns4 will soon become obsolete away :) 3) Up to 8 threads can be create using new IOElement(hiddenThreads) var ioelm=new IOElement(8) 4) Browser support: NS4 : GET (multithreading support) IE4+ : POST & GET (multithreading support) NS6+ : POST & GET (multithreading support) Enjoy! P.S. Some tweaking is still needed for ns4, but from what I've tested it seems to be working ok for the most part. -- Raymond Irving __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/
iolem4.zip
Description: iolem4.zip
