Hi,

If it's not a server-side issue (with respect, I still think it is),
you should be able to produce a very small, self-contained example
demonstrating the problem where the backend doesn't require JSP, just
static files.  I'd recommend doing that and pasting it to Pastie[1].
Very likely in the process of doing that, you'll figure out what's
wrong, but if not then people here on the list can look at it.

> Can you tell me how i can make new Ajax objects
> for each new Ajax call?

That's what "new Ajax.Request" does.  But again, we're talking about
code running in different windows.  Unless you're doing something
really special, they're well-isolated from one another.  But even if
you did multiple calls within the same window, again barring something
unusual in your code, they should all complete successfully.

HTH,
--
T.J. Crowder
tj / crowder software / com
Independent Software Engineer, consulting services available

On Apr 23, 6:00 am, NN <[email protected]> wrote:
> Hi,
>
>   Thanks for your reply! Yes, i have ensured that the response on the
> server side is correct, its just that its not sending the response in
> the response object. Can you tell me how i can make new Ajax objects
> for each new Ajax call? because this code :- new Ajax.Request(), makes
> only a new ajax request instance. Perhaps that might help?
>
> On Apr 21, 4:34 pm, "T.J. Crowder" <[email protected]> wrote:
>
> > Hi,
>
> > Are you sure this isn't caused at the server side?  For instance, can
> > you replicate the behavior if the calls just request static files?  It
> > would be extremely surprising if Ajax calls in different windows
> > (browser tabs are different windows) interacted with each other at
> > all, other than the common two-concurrent-requests-to-the-same-
> > endpoint limit (but if you run into that -- and you probably do --
> > they'll just queue, not come back empty).  My money is on the server
> > stuff (JSPs, struts, whatever) being the culprit and not handling
> > overlappings requests in the same session correctly.
>
> > FWIW,
> > --
> > T.J. Crowder
> > tj / crowder software / com
> > Independent Software Engineer, consulting services available
>
> > On Apr 21, 11:17 am, NN <[email protected]> wrote:
>
> > > When an user tries to send AJAX requests simultaneously from multiple
> > > browser tabs, one request gets completed and the page loads but the
> > > other AJAX calls are preempted. As a result of which the response is
> > > empty for the other calls. Only one call survives. In my application
> > > using struts 2.0, JSP and javascript and the prototype framework, i
> > > found that the server response is empty in the cases mentioned above
> > > though the data gets updated in teh database with the request
> > > parameters. The onSucess event handler for Ajax.request gets called
> > > but the the response is empty.
>
> > > Can you please help?
>
> > > Thanks- Hide quoted text -
>
> > - Show quoted text -
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to