HighDots Forums  

thread safe ajax

JavaScript discussion (multi-lingual) JavaScript discussion (alt.comp.lang.javascript)


Discuss thread safe ajax in the JavaScript discussion (multi-lingual) forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ivan Marsh
 
Posts: n/a

Default thread safe ajax - 06-03-2009 , 05:50 PM






Anyone have some simple examples of thread safe AJAX?

I'm working with a page where I'm trying to update the innerHTML of three
different anchors with the contents of simple text files when the page
loads. Only the last anchor gets changed.

I'm assuming this is a thread safe issue.

--
"All right, all right, if it will make you happy, I will overthrow society."
Â* - Philip J. Fry

Reply With Quote
  #2  
Old   
Michael J. Ryan
 
Posts: n/a

Default Re: thread safe ajax - 06-09-2009 , 06:12 PM






On 6/3/2009 2:50 PM, Ivan Marsh wrote:
Quote:
Anyone have some simple examples of thread safe AJAX?

I'm working with a page where I'm trying to update the innerHTML of three
different anchors with the contents of simple text files when the page
loads. Only the last anchor gets changed.

I'm assuming this is a thread safe issue.
Javascript in the browser is single threaded, so inherently thread-safe. How
are you creating the events? if you assign window.onload, then reassign it,
only the last assignment will run.

--
Michael J. Ryan - http://tracker1.info/

.... FRA #194: It's always good business to know about new customers before
they walk in the door.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.