[mochikit] Re: must cancel deferred for no callback post?

2007-06-22 Thread Yves

Thanks for the info Arnar.  I will see if I can at least get back a
status code.

Otherwise, I guess I could set a timeout and cancel the deferred after
some period.
I think I saw some code for how to do that.

thanks again.
Yves

On Jun 21, 10:45 pm, Arnar Birgisson [EMAIL PROTECTED] wrote:
 Hi there,

 On 6/21/07, Yves [EMAIL PROTECTED] wrote:



  I have a situation where I am sending data with doXHR and method post
  where I don't necessarily expect to get any data back.

  Does this mean I have to cancel the deferred somehow? If I don't will
  I get a load of deferreds sitting around eating memory? Or do they get
  garbage collected after a while?

 If the server sends back a status (like 200 OK) - you should get a
 callback even if the body is empty.

 If the server doesn't send back anything that would probably show up
 as a timeout error (not sure) and if you have any errbacks installed
 they should get called.

 If possible, I'd make sure that the server sends a response even if
 its just some status code - just to acknowledge that it got the
 request.

 Arnar


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
MochiKit group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---



[mochikit] must cancel deferred for no callback post?

2007-06-21 Thread Yves

I have a situation where I am sending data with doXHR and method post
where I don't necessarily expect to get any data back.

Does this mean I have to cancel the deferred somehow? If I don't will
I get a load of deferreds sitting around eating memory? Or do they get
garbage collected after a while?

thanks for any clarification.

-- Yves Jaques


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
MochiKit group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---



[mochikit] defferedlist, how to know the index of a particular deffered in the list

2007-06-15 Thread Yves

I have a situation where I have an array of arbitray length consisting
of keywords.

For each keyword, I fire off a doSimpleXMLHttpRequest().

I then use DeferredList() to create a list of all the Deferred objects
and I add a callback.

Now my problem is, how do I know from my callback function that the
result comes from the seventh request I made, or the ninth, etc.?

This is because I need to possibly modify one of the keywords in the
array I used to orginally generate the requests. So I need to be able
to relate the keyword to the request result.

Thanks for any clarification. Everything else works great. I've done a
lot of looking and I just can't get it.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
MochiKit group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~--~~~~--~~--~--~---