From 983b5c40e7b79609f0b014db0eec2baa649d2307 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 19 Aug 2010 00:49:31 +0000 Subject: [PATCH] Fix: An ajax return must not include html header. --- htdocs/societe/ajaxcompanies.php | 10 +++++----- htdocs/societe/ajaxcountries.php | 14 ++++++++++---- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/htdocs/societe/ajaxcompanies.php b/htdocs/societe/ajaxcompanies.php index 188e9f1f321..7a0f5033713 100644 --- a/htdocs/societe/ajaxcompanies.php +++ b/htdocs/societe/ajaxcompanies.php @@ -1,7 +1,7 @@ * Copyright (C) 2005-2009 Regis Houssin - * Copyright (C) 2007 Laurent Destailleur + * Copyright (C) 2007-2010 Laurent Destailleur * Copyright (C) 2010 Cyrille de Lambert * * This program is free software; you can redistribute it and/or modify @@ -35,9 +35,9 @@ if (! defined("NOLOGIN")) define("NOLOGIN",'1'); require('../main.inc.php'); -top_htmlhead("", "", 1, 1); +//top_htmlhead("", "", 1, 1); // Disabled. An ajax return must not include html header. -print ''; +//print ''; dol_syslog(join(',',$_POST)); @@ -84,6 +84,6 @@ else } -print ""; -print ""; +//print ""; +//print ""; ?> diff --git a/htdocs/societe/ajaxcountries.php b/htdocs/societe/ajaxcountries.php index 0dbb41f58db..3db01fa72c3 100644 --- a/htdocs/societe/ajaxcountries.php +++ b/htdocs/societe/ajaxcountries.php @@ -31,9 +31,15 @@ if (! defined('NOREQUIRESOC')) define('NOREQUIRESOC','1'); require('../main.inc.php'); -top_htmlhead("", "", 1, 1); +/* + * View + */ -print ''; +//top_htmlhead("", "", 1, 1); // Disabled. An ajax return must not include html header. + +//print ''; + +dol_syslog(join(',',$_POST)); // Generation liste des pays if(isset($_POST['pays']) && !empty($_POST['pays'])) @@ -62,6 +68,6 @@ if(isset($_POST['pays']) && !empty($_POST['pays'])) } } -print ""; -print ""; +//print ""; +//print ""; ?>