![]() |
Problems with compression and ajax - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Problems with compression and ajax (/showthread.php?tid=3005) |
Problems with compression and ajax - El Forum - 09-04-2007 [eluser]Giacomo[/eluser] Hi everybody, I have a problem with output compression and ajax (I use prototype). My problem is that ajax creates problems to "ob_start" function because I use "echo" istruction in ajax calls. Somebody has this problem? How can I solve it? Bye and thanks Problems with compression and ajax - El Forum - 09-04-2007 [eluser]bijon[/eluser] Hi, Can you post some code about your problem . Problems with compression and ajax - El Forum - 09-05-2007 [eluser]Giacomo[/eluser] [quote author="bijon" date="1188981821"]Hi, Can you post some code about your problem .[/quote] Nothing of special. In "config.php" I have "$compression = true", and in controller I have a function like this: Code: function ajax_response() { Problems with compression and ajax - El Forum - 09-05-2007 [eluser]Michael Wales[/eluser] turn off output compression? Problems with compression and ajax - El Forum - 09-05-2007 [eluser]Giacomo[/eluser] [quote author="walesmd" date="1189014255"]turn off output compression?[/quote] Thanks...=( My question is if there is a way to turn on output compression and use ajax... Problems with compression and ajax - El Forum - 09-05-2007 [eluser]Michael Wales[/eluser] Does output compression work without your Ajax requests? There are no inherent malfunctions between the two - it must be a misconfiguration on your server... Problems with compression and ajax - El Forum - 09-05-2007 [eluser]Giacomo[/eluser] [quote author="walesmd" date="1189029875"]Does output compression work without your Ajax requests? There are no inherent malfunctions between the two - it must be a misconfiguration on your server...[/quote] Yes, output compression works without ajax. Problems with compression and ajax - El Forum - 02-01-2012 [eluser]victorche[/eluser] sorry for posting in this old thread but... I have the same problem I have simple ajax, where I'm returning the values with "echo". But if I want to use "compress_output", it gives me an error. And like it's written in the comment: Quote:Do not "echo" any values with compression enabled.So, how to use ajax and compression? |