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
More than one request

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


Joined: 30 May 2006
Posts: 1

PostPosted: Fri Jun 02, 2006 12:23 pm    Post subject: More than one request Reply with quote

How i can do a multi xmlhttprequest???
_________________
Alexandre K. Seki
Brazil-RS
Back to top
View user's profile Send private message MSN Messenger
deejay
Forum Assistant
Forum Assistant


Joined: 17 May 2006
Posts: 78
Location: Netherlands

PostPosted: Tue Jun 06, 2006 2:51 am    Post subject: heja dude Reply with quote

heja dude from brazil,

sorry for late reply am on holiday in thailand, will be back on 17th of june

http://www.dynamicdrive.com/forums/archive/index.php/t-7103.html
_________________
please correct me if i am wrong
seo-expertglobalwarming
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
adam
New one
New one


Joined: 31 May 2006
Posts: 4

PostPosted: Tue Jun 06, 2006 7:27 am    Post subject: Reply with quote

Really all you would need too do is create a new request with a different name, then everything should work ok. Its proberly not the best of ideas of sticking your HTTPRequest Object in an array. As things might get messy, how would you know the key for that array? What if more requests are made?

It would be proberly better just too create a loop, so the new request isnt sent until the old request is finished. Or have your requests dealt with in the code functions and thats it.

Code:


function MakeRequest() {
    // logic
    return RequestObject;
}

function doThis() {
   var req = MakeRequest();
   // logic
}



I hope that helps or makes sense!


Come to think about it why would you need to open a new request? Just wait until the old one is finished will only take a couple of seconds.


Adam
Back to top
View user's profile Send private message MSN Messenger
clenard
Light Frequent Poster
Light Frequent Poster


Joined: 25 Jun 2006
Posts: 9

PostPosted: Tue Jun 27, 2006 2:40 am    Post subject: Reply with quote

Can't you create an inner (anonymous) function as well?
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
 Advertisements
 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 ?


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