[jQuery] Re: ajax post variable error in safari/chrome
WebKit sucks parsing Dynamic XML, I had this problem and I found it was because Gzip... The SOLUTION in PHP, add the fallowing code in your PHP code: header('Content-Type: application/xml'); ob_start('ob_gzhandler'); another problem reasons could be that your dynamic XML is not a real XML, my advice for tests: Use Firefox and Firebug save your dynamic XML in the same dir where is your dyamic one open both, the dynamic and the saved on firefox check if the headers look the same good luck. pedalpete-2 wrote: I know this is kinda weird, and I can't seem to find where the issue is. i've been working on a tag cloud for my site hearwhere.com and everything works from FF/IE, but safari and chrome won't let me pass a multi-word variable into my query. You can test it out at http://zifimusic.com/v3 The single word genres from the tag cloud work no problem, but the multi-words (like 'folk rock') always return 0 results in Safari/ Chrome but return a number of results in FF/IE. I've output the query and copied it from source, and it runs fine, so I don't understand how Chrome Safari could be causing this issue, but everything seems to be going in correctly. I've left an 'alert' on the passed genre so I can see what is being passed, and it all looks good to me. ANY ideas on this? Super strange (i think). -- View this message in context: http://www.nabble.com/ajax-post-variable-error-in-safari-chrome-tp19803716s27240p20675959.html Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: ajax post variable error in safari/chrome
figured this one out a while ago, but forgot to update it (though it took forever to debug too). Turns out it wasn't really webkit (though the other websites didn't have a problem), but spaces in the text were being represented by /\W\g, and only webkit did not strip this out when posting the data. Other browsers did strip it out. On Nov 27, 3:20 pm, rodrigopolo [EMAIL PROTECTED] wrote: WebKit sucks parsing Dynamic XML, I had this problem and I found it was because Gzip... The SOLUTION in PHP, add the fallowing code in your PHP code: header('Content-Type: application/xml'); ob_start('ob_gzhandler'); another problem reasons could be that your dynamic XML is not a real XML, my advice for tests: Use Firefox and Firebug save your dynamic XML in the same dir where is your dyamic one open both, the dynamic and the saved on firefox check if the headers look the same good luck. pedalpete-2 wrote: I know this is kinda weird, and I can't seem to find where the issue is. i've been working on a tag cloud for my site hearwhere.com and everything works from FF/IE, but safari and chrome won't let me pass a multi-word variable into my query. You can test it out athttp://zifimusic.com/v3 The single word genres from the tag cloud work no problem, but the multi-words (like 'folk rock') always return 0 results in Safari/ Chrome but return a number of results in FF/IE. I've output the query and copied it from source, and it runs fine, so I don't understand how Chrome Safari could be causing this issue, but everything seems to be going in correctly. I've left an 'alert' on the passed genre so I can see what is being passed, and it all looks good to me. ANY ideas on this? Super strange (i think). -- View this message in context:http://www.nabble.com/ajax-post-variable-error-in-safari-chrome-tp198... Sent from the jQuery General Discussion mailing list archive at Nabble.com.
[jQuery] Re: ajax post variable error in safari/chrome
WebKit sucks parsing Dynamic XML, I had this problem and I found it was because Gzip... The SOLUTION in PHP, add the fallowing code in your PHP code: header('Content-Type: application/xml'); ob_start('ob_gzhandler'); another problem reasons could be that your dynamic XML is not a real XML, my advice for tests: Use Firefox and Firebug save your dynamic XML in the same dir where is your dyamic one open both, the dynamic and the saved on firefox check if the headers look the same good luck. On Oct 3, 1:01 pm, pedalpete [EMAIL PROTECTED] wrote: I know this is kinda weird, and I can't seem to find where the issue is. i've been working on a tag cloud for my site hearwhere.com and everything works from FF/IE, but safari and chrome won't let me pass a multi-word variable into my query. You can test it out athttp://zifimusic.com/v3 The single word genres from the tag cloud work no problem, but the multi-words (like 'folk rock') always return 0 results in Safari/ Chrome but return a number of results in FF/IE. I've output the query and copied it from source, and it runs fine, so I don't understand how Chrome Safari could be causing this issue, but everything seems to be going in correctly. I've left an 'alert' on the passed genre so I can see what is being passed, and it all looks good to me. ANY ideas on this? Super strange (i think).