SingleBuffer Queue Behaviour

View: New views
3 Messages — Rating Filter:   Alert me  

SingleBuffer Queue Behaviour

by shangxiao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

Just a question about the behaviour of the SingleBuffer queue.

Is it worth adding an option to disable the immediate sending of the first request?  The reason why I ask is because as I was using HTML_QuickForm_Livesearch and tracking the ajax requests on my server while playing with the interval delay, I found it strange that for longer delay times, I was still getting a request for the first character that I had typed.  At first I thought this was a bug and then I read the javascript and found that it was deliberate.  My intention is to get a livesearch text field happening but delay sending a request to the server until the user had stopped typing in the text field.  So would this be a reasonable request?  I could imagine that in the future I would want similar functionality.

Regards,
David

Re: SingleBuffer Queue Behaviour

by JoshuaEichorn :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

shangxiao wrote:

> Hi all,
>
> Just a question about the behaviour of the SingleBuffer queue.
>
> Is it worth adding an option to disable the immediate sending of the first
> request?  The reason why I ask is because as I was using
> HTML_QuickForm_Livesearch and tracking the ajax requests on my server while
> playing with the interval delay, I found it strange that for longer delay
> times, I was still getting a request for the first character that I had
> typed.  At first I thought this was a bug and then I read the javascript and
> found that it was deliberate.  My intention is to get a livesearch text
> field happening but delay sending a request to the server until the user had
> stopped typing in the text field.  So would this be a reasonable request?  I
> could imagine that in the future I would want similar functionality.
>
> Regards,
> David
>  
Added an option to remove that sounds reasonable.  If you send me a
patch i will get it in for the next bug fix release which should be in
the next week or so.

-josh
_______________________________________________
Html_ajax-devel mailing list
Html_ajax-devel@...
http://lists.bluga.net/mailman/listinfo/html_ajax-devel

Re: SingleBuffer Queue Behaviour

by shangxiao :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Joshua Eichorn wrote:
> Added an option to remove that sounds reasonable.  If you send me a
> patch i will get it in for the next bug fix release which should be in
> the next week or so.
>
> -josh
>

Ok great, I've already started to play around with the javasscript.  One thing I
didn't realise is that it will only ever send that first request once per page
load because the interval id is never cleared unless stop() is called.  Is this
correct?

Also, can you tell me what the effect of setting "singleOutstandingRequest"
should be?



--
     David Sanders
     shangxiao
_______________________________________________
Html_ajax-devel mailing list
Html_ajax-devel@...
http://lists.bluga.net/mailman/listinfo/html_ajax-devel