[Phphtmllib-devel] SF.net SVN: phphtmllib:[3367] trunk/phphtmllib/src/widgets/JSONWidget.inc
Status: Beta
Brought to you by:
hemna
From: <he...@us...> - 2010-02-26 07:09:20
|
Revision: 3367 http://phphtmllib.svn.sourceforge.net/phphtmllib/?rev=3367&view=rev Author: hemna Date: 2010-02-26 07:09:14 +0000 (Fri, 26 Feb 2010) Log Message: ----------- set the header Modified Paths: -------------- trunk/phphtmllib/src/widgets/JSONWidget.inc Modified: trunk/phphtmllib/src/widgets/JSONWidget.inc =================================================================== --- trunk/phphtmllib/src/widgets/JSONWidget.inc 2010-02-26 03:56:43 UTC (rev 3366) +++ trunk/phphtmllib/src/widgets/JSONWidget.inc 2010-02-26 07:09:14 UTC (rev 3367) @@ -23,7 +23,8 @@ } - public function render() { + public function render() { + header("Content-type:text/javascript"); $data = $this->build_object(); return json_encode($data); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |