Ajax Talk - Asynchronous javascript and xml discussion board
 FAQ   Search    Usergroups      Register   Profile   Check your messages   Log in 
Signup now to enjoy a range of free membership advantages !!
Ajax Talk - Moderators Wanted
Ajax handler

Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> AJAX general discussion
View previous topic :: View next topic  
Author Message
New one
New one

Joined: 13 May 2008
Posts: 1

PostPosted: Tue May 13, 2008 2:23 pm    Post subject: Ajax handler Reply with quote

I have a question regarding the following portion of code:

var request_1 = createXmlHttpRequest();
request_1.open("GET", Myurl1, true);
request_1.onreadystatechange = MyHandler;

var request_2 = createXmlHttpRequest();
request_2.open("GET", Myurl2, true);
request_2.onreadystatechange = MyHandler;

var Buffer = new Array(1000);

function MyHandler()
performs some operation on Buffer;

The function MyHandler is used by request_1 and request_2.
Is "MyHandler" executed concurrently by two separates threads?
If this is the case how can I synchronize the variable Buffer?

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> AJAX general discussion All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
 XML & Copyright Notice 

Powered by phpBB © 2001, 2005 phpBB Group

What is according to Wikipedia: Ajax Web2.0 XML E4X

Link to our site:


del.icio.us digg spurl wists simpy newsvine blinklist furl blogmarks yahoo! myweb smarking ma.gnolia segnalo reddit fark technorati cosmos

Normal Bookmark

Partner Button Links:
Codecrunch.com: Webmaster Tutorials    One Ajax

Partner Text Links:
quomon | web20log | ajaxmatters | tableless | 456bereastreet | music charts | gift ideas | competitions | free xbox 360 | link trade ?

it consultancy & project management lead generation zoekmachine optimalisatie steal these buttons seo expert