473,405 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

AJAX call only works once in IE. Works fine in Mozilla.

13
Hi
I have a JSP that calls an Ajax function when a button is clicked.
The Ajax function calls a servlet . The Ajax function works well in Mozilla , but in IE7 when the button is clicked it works well for the first time but the subsequent clicks on the button the servlet is not being called.

I am not able to debug why this problem in ocuuring in IE7 but not in Mozilla.


Thanks
Mansoor
Aug 23 '07 #1
5 3369
pbmods
5,821 Expert 4TB
Heya, Mansoor.

Changed thread title to better describe the problem.

Are you getting an error, or is it just not doing anything?
Aug 23 '07 #2
makthar
13
Hi
Thanks for the reply

I am not getting any javascript error , but in my servlet i print some info to the server logs whenever the servlet is called.

This works fine in mozilla. The info gets printed as many times as the ajax function calls the servlet i.e everytime the button is clicked, so this is working fine in mozilla, but in IE7 the info gets printed only once no matter how many times the button is clicked. So i figured out that the ajax function is calling the servlet only once in IE7.

Thanks
Mansoor.
Aug 23 '07 #3
@makthar
Hi,
I have the same problem as you described above.
Did you find a solution?
Thanks!
Oct 15 '09 #4
Hello, makthar!

Do you have any code sample you could post?

I suggest that you use some HTTP debugger (Fiddler 2, perhaps: http://www.fiddler2.com/Fiddler2/version.asp) to see if any error occurs in the request.

Best regards.
Oct 18 '09 #5
acoder
16,027 Expert Mod 8TB
Without code, it's difficult to say, but it seems as though it may be a problem with caching. So either disable caching or add a unique parameter to avoid caching.
Oct 25 '09 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Grzegorz Smith | last post by:
Hi everyone. Does anyone know is it possible to check if ajax call was redirect? i mean I connect by Ajax to one URL but I'm redirected to other url. Is there a way to check that my request was...
1
by: Chaprasi | last post by:
Hi, I was wondering how I can achieve to display a 'Please wait loading...' message only if the ajax call is taking more than a second. The message should only appear if the Ajax call is...
2
by: Zeba | last post by:
Hi guys! I'm new to JS / Ajax; I've been trying to do an Ajax call to my Webservice ( I'm using C# for code-behind). I'm not using any of the libraries available. I am sending my CustID to the...
3
by: wendallsan | last post by:
Hi All, I've stumped myself writing an app that uses Prototype and a bit of PHP. Here is what I have: I have a custom class named Default_county_init_data that, upon initialization makes...
2
by: gaya3 | last post by:
Hi , can any one please say me how to retreive the array from another jsp thro' ajax call... <%@ include file="JspBean.jsp" %> <html> <head> <link rel="stylesheet" type="text/css"...
5
RamananKalirajan
by: RamananKalirajan | last post by:
Hi guys, I am having a problem in Prototypejs AJAX, I am triggering the AJAX call and in the option i am using like the folowing code: new Ajax.Request(connection.url, { method:...
29
by: zalek | last post by:
I am writing application with Ajax in sync mode - xmlHttp.open("GET", url, false). I noticed that in FireFox handler doesn't starts. It starts when I use xmlHttp.open("GET", url,true). I need to...
9
Claus Mygind
by: Claus Mygind | last post by:
I am having trouble escaping the & in a JSON.stringfy() ajax call. I don't even know if I am stating the problem correctly here. In my app I have linked json2.js from http://www.JSON.org/json2.js...
5
by: samarinder | last post by:
I am displaying the results by iterating the list in div tag say "results" in my case.For refining of search i am using ajax call. But when i am getting response back from this below snippet ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.