Tobias Pfeiffer | 28 Jun 2012 21:17
Gravatar

[Lift] Parallel AJAX requests

Hi,

maybe there's something wrong in how I understand AJAX in Lift, but is 
it possible to have multiple requests running to the server in parallel? 
Right now, I have one AJAX call populate the main content of my page, 
but if the user clicks some other (AJAX) button while this is done, 
there's no reaction, i.e. he'll click twice etc.
Is there a way to make some AJAX request run even though another one is 
still running?

Thanks
Tobias

--

-- 
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

David Pollak | 28 Jun 2012 22:59
Picon
Gravatar

Re: [Lift] Parallel AJAX requests



On Thu, Jun 28, 2012 at 8:17 PM, Tobias Pfeiffer <tobias-auBFr3Xsi8rQT0dZR+AlfA@public.gmane.org> wrote:
Hi,

maybe there's something wrong in how I understand AJAX in Lift, but is
it possible to have multiple requests running to the server in parallel?
Right now, I have one AJAX call populate the main content of my page,
but if the user clicks some other (AJAX) button while this is done,
there's no reaction, i.e. he'll click twice etc.
Is there a way to make some AJAX request run even though another one is
still running?

No.

Lift serializes Ajax requests for a bunch of reasons including avoiding threading issues on the server and avoiding connection starvation.
 

Thanks
Tobias

--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code



--
Telegram, Simply Beautiful CMS https://telegr.am
Lift, the simply functional web framework http://liftweb.net


--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
Naftoli Gugenheim | 29 Jun 2012 01:09
Picon
Gravatar

Re: [Lift] Parallel AJAX requests

Sorry for my ignorance, but is this something that web sockets have any bearing on?


On Thu, Jun 28, 2012 at 4:59 PM, David Pollak <feeder.of.the.bears <at> gmail.com> wrote:


On Thu, Jun 28, 2012 at 8:17 PM, Tobias Pfeiffer <tobias <at> tesobe.com> wrote:
Hi,

maybe there's something wrong in how I understand AJAX in Lift, but is
it possible to have multiple requests running to the server in parallel?
Right now, I have one AJAX call populate the main content of my page,
but if the user clicks some other (AJAX) button while this is done,
there's no reaction, i.e. he'll click twice etc.
Is there a way to make some AJAX request run even though another one is
still running?

No.

Lift serializes Ajax requests for a bunch of reasons including avoiding threading issues on the server and avoiding connection starvation.
 

Thanks
Tobias

--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code



--
Telegram, Simply Beautiful CMS https://telegr.am
Lift, the simply functional web framework http://liftweb.net


--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code

Gmane