• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Scott Selikoff
Bartenders:
  • Piet Souris
  • Jj Roberts
  • fred rosenberger

possible conflict with AJAX

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a J2EE web application which performs database select, update and insert operations..
All the operations work fine after thorough testing.
But only in some cases, the update and insert operations take forever and just sit there doing nothing.
Interestingly, I don't get any exception or error in the logs..
But after some research, I was able to find something unusual.
I have AJAX calls inside my JSP's.
I suspect that whenever I trigger an update/insert operation before an AJAX response comes back, I run into this problem.
And I'm unable to perform any update/insert operation thereafter.
I'm not sure if the problem is because of AJAX conflict or something else..
Please suggest me..
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
And what does the code look like that you are using to make a call?

Eric
 
Steve Renard
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Here's the AJAX code:
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well one thing is if you are doing post, you would not be using a querystring

var urel = "FSAction.do?todo=fetch";
var queryString = "&caseno="+caseno.value;

should probably be



If you were just using a querystring, you would be using get and append it to the url and put null in send.


Eric
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic