Forum Moderators: open

Message Too Old, No Replies

firefox 3 problem with ajax response

         

dereklane

9:37 am on Jan 13, 2009 (gmt 0)

10+ Year Member



Hi,

I am having a problem where my ajax responses are *randomly* cut off, but only in my version of firefox. The exact same response will on the one call show the whole response, and on another, only half of it, cut off at different places (sometimes in the middle of an anchor tag address, other times after it, or before it). The server is ubuntu with mysql, php5.

I've checked the script (over and over) and also tested it on IE7 and Opera, where it works fine. In fact, on other pcs with the same version of firefox, its working fine (3.0.5).

I've tried reinstalling, uninstalling, completely uninstalling, changing versions of firefox, with no difference. I've tried (in desperation) shutting down my AVG and zone alarm. I get the same results.

Could anyone point me in a direction I haven't thought of? I can't think of what else to test. The responses are smallish - I've successfully run larger ones in the past, but its in a table format (varying amounts of data in an uncontrolled environment).

If you think it might be my version of firefox, could someone explain to me what I might be missing in my uninstalls? Otherwise, let me know what further information you might need.

Thanks in advance for any help,

cheers,

Derek

Fotiman

5:26 am on Jan 14, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How are you checking the response? Are you checking that the readyState is 4 (DONE) before you view the responseText?

dereklane

9:25 am on Jan 14, 2009 (gmt 0)

10+ Year Member



Hi Fotiman,

Well, its working now ... In answer to your question, yes, I am and was checking for readyState==4 before viewing the responseXML.

But after more testing, I discovered that on forcing the browser to UTF-8 character encoding, it seemed to work. Then I had issues with making firefox 3.0.5 do that (it reverts back to western ISO... at certain points, no matter if I change it in view, tools->options, or via the about:config).

Anyway, I gave up. Then, when I switched on the laptop this morning, it was working, which makes me think that after I uninstalled and then reinstalled firefox 3.0.5, or after the UTF-8 changes, I should have rebooted (usually a first port of call, but there you go) ...

Anyway, I'm fairly certain it was either a setting or corruption in my copy of firefox (related to character encoding), rather than firefox itself, or the script. Maybe this will help out anyone else that may have similiar problems.

cheers,

Derek