|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
IE6 ajax oddityFolks, I have a small blog application at http://www.thomasbaine.com/thetuis.asp The application works fine in IE7 and FF on both the production server (above) and my local development machine. IE6 works fine on my local machine, but fails on the production server. By fail, I mean that ajax calls to the server are not returned. For example, I can post a comment - and it will be stored in the database - but the return ajax stream of data to update the page does not arrive. Similarly, click on the "Recent" links to retrieve previous items of the blog do not "work" - the server receives the instruction and does the processing, but the return ajax stream doesn't seem to arrive. Any ideas? Thanks/Bruce |
|
|
Re: IE6 ajax oddityHi Bruce, Someone with more experience on this than me can hopefully jump in here, but I noticed your server's response headers for those "Recent" link AJAX requests contained: Content-Type application/json I see that you are specifying that as the "dataType" option on your .ajax() calls, so that's all good. But I remember a comment that someone entered on J�rn's blog regarding the validation plugin (which often uses JSON data) about the page's "Content-Type" meta tag being UTF-8, such as: <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> Apparently under certain conditions, this content-type can cause IE 6 to have fits with JSON (and perhaps other dataTypes) Ajax responses. I'm not sure if somehow making sure the responses are encoded in UTF-8 would help (to be honest, I'm not exactly sure if that even makes sense?). But apparently, changing your page's "content-type" meta tag to: <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> ...will often help make IE 6 behave like a good little browser. Sorry if that's not any help. But hopefully this could fix the problem you're seeing. Good Luck! -THEO- On Aug 8, 2007, at 6:51 PM, Bruce MacKay wrote: > > Folks, > > I have a small blog application at http://www.thomasbaine.com/ > thetuis.asp > > The application works fine in IE7 and FF on both the production > server (above) and my local development machine. > > IE6 works fine on my local machine, but fails on the production > server. > > By fail, I mean that ajax calls to the server are not returned. > For example, I can post a comment - and it will be stored in the > database - but the return ajax stream of data to update the page > does not arrive. Similarly, click on the "Recent" links to > retrieve previous items of the blog do not "work" - the server > receives the instruction and does the processing, but the return > ajax stream doesn't seem to arrive. > > Any ideas? > > Thanks/Bruce > |
|
|
Re: IE6 ajax oddityAlso, check this post on Remy Sharp's blog: http://remysharp.com/2007/01/16/broken-ajax-nothing-coming-back/ Cheers, -THEO- On Aug 8, 2007, at 6:51 PM, Bruce MacKay wrote: > > Folks, > > I have a small blog application at http://www.thomasbaine.com/ > thetuis.asp > > The application works fine in IE7 and FF on both the production > server (above) and my local development machine. > > IE6 works fine on my local machine, but fails on the production > server. > > By fail, I mean that ajax calls to the server are not returned. > For example, I can post a comment - and it will be stored in the > database - but the return ajax stream of data to update the page > does not arrive. Similarly, click on the "Recent" links to > retrieve previous items of the blog do not "work" - the server > receives the instruction and does the processing, but the return > ajax stream doesn't seem to arrive. > > Any ideas? > > Thanks/Bruce > |
|
|
Re: IE6 ajax oddityI don't have IE 6 right now, so i won't be able to test the page, but, typically these types of behavior is seen when there is some script error in IE. check to see if there is some error in the javascript end.
-GTG
On 8/8/07, Bruce MacKay <b.mackay@...> wrote:
|
|
|
Re: IE6 ajax oddityTheo, your link fixed my problem as well. It seems that IE 6 sometimes wants a few carriage returns in served JSON content when it is parsed. Thanks! Theo Skye wrote: > Also, check this post on Remy Sharp's blog: > > http://remysharp.com/2007/01/16/broken-ajax-nothing-coming-back/ > > Cheers, > -THEO- > > > > > On Aug 8, 2007, at 6:51 PM, Bruce MacKay wrote: > > > > > Folks, > > > > I have a small blog application at http://www.thomasbaine.com/ > > thetuis.asp > > > > The application works fine in IE7 and FF on both the production > > server (above) and my local development machine. > > > > IE6 works fine on my local machine, but fails on the production > > server. > > > > By fail, I mean that ajax calls to the server are not returned. > > For example, I can post a comment - and it will be stored in the > > database - but the return ajax stream of data to update the page > > does not arrive. Similarly, click on the "Recent" links to > > retrieve previous items of the blog do not "work" - the server > > receives the instruction and does the processing, but the return > > ajax stream doesn't seem to arrive. > > > > Any ideas? > > > > Thanks/Bruce > > |
| Free embeddable forum powered by Nabble | Forum Help |