<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=HTML_AJAX</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/16548" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14940" />
      <rdf:li rdf:resource="http://pear.php.net/bug/11770" />
      <rdf:li rdf:resource="http://pear.php.net/bug/10942" />
      <rdf:li rdf:resource="http://pear.php.net/bug/10941" />
      <rdf:li rdf:resource="http://pear.php.net/bug/10940" />
      <rdf:li rdf:resource="http://pear.php.net/bug/10939" />
      <rdf:li rdf:resource="http://pear.php.net/bug/9434" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/16548">
      <title>HTML_AJAX: Bug 16548 [Open] Doing HTML_AJAX.replace in the SonyEricsson browser results in failed replace</title>
      <link>http://pear.php.net/bugs/16548</link>
      <content:encoded><![CDATA[<pre>HTML_AJAX Bug
Reported by erikbes
2009-08-25T08:02:57+00:00
PHP: 5.2.5 OS: OSE/SonyEricsson mobile phone Package Version: 0.5.6

Description:
------------
Any HTML_AJAX.replace will result in [Object String] being shown in the browser window instead of the expected replacing content.

Test script:
---------------
Any replace will result in this.

Expected result:
----------------
The replacing content.

Actual result:
--------------
[Object String]</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_AJAX Bug
Reported by erikbes
2009-08-25T08:02:57+00:00
PHP: 5.2.5 OS: OSE/SonyEricsson mobile phone Package Version: 0.5.6

Description:
------------
Any HTML_AJAX.replace will result in [Object String] being shown in the browser window instead of the expected replacing content.

Test script:
---------------
Any replace will result in this.

Expected result:
----------------
The replacing content.

Actual result:
--------------
[Object String]</pre>]]></description>
      <dc:date>2009-08-25T08:02:57+00:00</dc:date>
      <dc:creator>erik &amp;#x61;&amp;#116; bes &amp;#x64;&amp;#111;&amp;#x74; se</dc:creator>
      <dc:subject>HTML_AJAX Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14940">
      <title>HTML_AJAX: Feature/Change Request 14940 [Open] Improve PHPCS results</title>
      <link>http://pear.php.net/bugs/14940</link>
      <content:encoded><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by doconnor
2008-11-03T01:23:36+00:00
PHP: 5.2.6 OS:  Package Version: CVS

Description:
------------
http://pear.cweiske.de/codingstandards/HTML_AJAX.html

6078 errors and 851 warnings

Most of these are pretty easy to fix; ie:

1) Expected &quot;foreach (...) {\n&quot;; found &quot;foreach(...) {\n&quot;
2) Expected &quot;if (...) {\n&quot;; found &quot;if(...) {\n&quot;
3) Spaces must be used to indent lines; tabs are not allowed</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by doconnor
2008-11-03T01:23:36+00:00
PHP: 5.2.6 OS:  Package Version: CVS

Description:
------------
http://pear.cweiske.de/codingstandards/HTML_AJAX.html

6078 errors and 851 warnings

Most of these are pretty easy to fix; ie:

1) Expected &quot;foreach (...) {\n&quot;; found &quot;foreach(...) {\n&quot;
2) Expected &quot;if (...) {\n&quot;; found &quot;if(...) {\n&quot;
3) Spaces must be used to indent lines; tabs are not allowed</pre>]]></description>
      <dc:date>2008-12-06T09:34:29+00:00</dc:date>
      <dc:creator>daniel &amp;#x64;&amp;#111;&amp;#x74; oconnor &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_AJAX Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/11770">
      <title>HTML_AJAX: Feature/Change Request 11770 [Open] sending HTML_Ajax_Action and JSON-encoded data same time</title>
      <link>http://pear.php.net/bugs/11770</link>
      <content:encoded><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by motubo
2007-08-06T09:13:43+00:00
PHP: 5.2.0 OS: Linux/Debian Package Version: 0.5.2

Description:
------------
I need some functionality that gives me the possibility to send an HTML_Ajax_Action-instance and some JSON-encoded data as ajax-response at same time.

i think of using HTML_Ajax_Action as always to trigger errors or display the html. But additional, I'd like to give the response object some JSON-encoded data as payload.

On client side, the JSON-data is passed to the callback given to HTML_AJAX.grab(...)



Test script:
---------------
$response = new HTML_Ajax_Action;

$response-&gt;assignAttr( 'myid', 'innerHTML', 'this is some response html' );
$response-&gt;insertScript( 'doSomethingOnJsSide()' );

// now add the JSON-encoded data
$response-&gt;addDataOrWhateverThisFunctionWillBeCalled( json_encode( $myData ) );

return $response;</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by motubo
2007-08-06T09:13:43+00:00
PHP: 5.2.0 OS: Linux/Debian Package Version: 0.5.2

Description:
------------
I need some functionality that gives me the possibility to send an HTML_Ajax_Action-instance and some JSON-encoded data as ajax-response at same time.

i think of using HTML_Ajax_Action as always to trigger errors or display the html. But additional, I'd like to give the response object some JSON-encoded data as payload.

On client side, the JSON-data is passed to the callback given to HTML_AJAX.grab(...)



Test script:
---------------
$response = new HTML_Ajax_Action;

$response-&gt;assignAttr( 'myid', 'innerHTML', 'this is some response html' );
$response-&gt;insertScript( 'doSomethingOnJsSide()' );

// now add the JSON-encoded data
$response-&gt;addDataOrWhateverThisFunctionWillBeCalled( json_encode( $myData ) );

return $response;</pre>]]></description>
      <dc:date>2007-08-06T09:13:43+00:00</dc:date>
      <dc:creator>jan &amp;#x61;&amp;#116; motubo &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_AJAX Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/10942">
      <title>HTML_AJAX: Feature/Change Request 10942 [Open] Optional Support for Auto Charset Conversion</title>
      <link>http://pear.php.net/bugs/10942</link>
      <content:encoded><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by jeichorn
2007-05-05T17:11:24+00:00
PHP: Irrelevant OS:  Package Version: 0.5.1

Description:
------------
If your using none iso-8851 characters you need to convert things to utf8 before it goes through the JSON converter (good chance of others as well)

Lets add an automatic implementation of this, disabled by default because of the performance hit.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by jeichorn
2007-05-05T17:11:24+00:00
PHP: Irrelevant OS:  Package Version: 0.5.1

Description:
------------
If your using none iso-8851 characters you need to convert things to utf8 before it goes through the JSON converter (good chance of others as well)

Lets add an automatic implementation of this, disabled by default because of the performance hit.</pre>]]></description>
      <dc:date>2007-05-05T17:11:24+00:00</dc:date>
      <dc:creator>jeichorn &amp;#x61;&amp;#116; JoshuaEichorn &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_AJAX Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/10941">
      <title>HTML_AJAX: Feature/Change Request 10941 [Assigned] Unit Tests for Class HTML_AJAX</title>
      <link>http://pear.php.net/bugs/10941</link>
      <content:encoded><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by jeichorn
2007-05-05T17:06:18+00:00
PHP: Irrelevant OS:  Package Version: 0.5.1

Description:
------------
Write them</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by jeichorn
2007-05-05T17:06:18+00:00
PHP: Irrelevant OS:  Package Version: 0.5.1

Description:
------------
Write them</pre>]]></description>
      <dc:date>2007-07-24T12:25:14+00:00</dc:date>
      <dc:creator>jeichorn &amp;#x61;&amp;#116; JoshuaEichorn &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_AJAX Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/10940">
      <title>HTML_AJAX: Feature/Change Request 10940 [Open] Refactor JavaScript generation code</title>
      <link>http://pear.php.net/bugs/10940</link>
      <content:encoded><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by jeichorn
2007-05-05T17:04:52+00:00
PHP: Irrelevant OS:  Package Version: 0.5.1

Description:
------------
Pull the proxy class generation out into its own class

This will make it easier to test, and reduce the size of the HTML_AJAX class

Lets try not to break API compat while doing this</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by jeichorn
2007-05-05T17:04:52+00:00
PHP: Irrelevant OS:  Package Version: 0.5.1

Description:
------------
Pull the proxy class generation out into its own class

This will make it easier to test, and reduce the size of the HTML_AJAX class

Lets try not to break API compat while doing this</pre>]]></description>
      <dc:date>2007-05-05T17:04:52+00:00</dc:date>
      <dc:creator>jeichorn &amp;#x61;&amp;#116; JoshuaEichorn &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_AJAX Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/10939">
      <title>HTML_AJAX: Feature/Change Request 10939 [Open] Pull Opera proxy code out into its own class</title>
      <link>http://pear.php.net/bugs/10939</link>
      <content:encoded><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by jeichorn
2007-05-05T17:03:02+00:00
PHP: Irrelevant OS:  Package Version: 0.5.1

Description:
------------
Pull the Opera proxy code out into its own class.

It might make sense to offer the proxy for all browser doing remote requests from the browser through it.

Accept for any additions this shouldn't affect the API its all private methods.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by jeichorn
2007-05-05T17:03:02+00:00
PHP: Irrelevant OS:  Package Version: 0.5.1

Description:
------------
Pull the Opera proxy code out into its own class.

It might make sense to offer the proxy for all browser doing remote requests from the browser through it.

Accept for any additions this shouldn't affect the API its all private methods.</pre>]]></description>
      <dc:date>2007-05-05T17:03:02+00:00</dc:date>
      <dc:creator>jeichorn &amp;#x61;&amp;#116; JoshuaEichorn &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_AJAX Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/9434">
      <title>HTML_AJAX: Feature/Change Request 9434 [Assigned] callback as closures</title>
      <link>http://pear.php.net/bugs/9434</link>
      <content:encoded><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by akutin@...
2006-11-23T15:25:25+00:00
PHP: 5.1.6 OS:  Package Version: 0.5.0

Description:
------------
In async mode it appears to be usefull to define callbacks as closures. When the response time is noticeable values of global variables might change based on user actions during the request.



Test script:
---------------
&lt;html&gt;
&lt;select id=&quot;select1&quot; onchange=&quot;onSelectBoxChange( this)&quot;&gt;
&lt;option value=&quot;1&quot;&gt;First list&lt;/option&gt;
&lt;option value=&quot;2&quot;&gt;Second list&lt;/option&gt;
&lt;option value=&quot;3&quot;&gt;Third list&lt;/option&gt;
&lt;/select&gt;
&lt;select id=&quot;select2&quot;&gt;
&lt;/select&gt;
&lt;/html&gt;
// Javascript

// ajaxInterface is an instance of an ajax stub with callbacks in async mode.

/*
the code populates values in one select box (select2) based on selection in another (select1). If during the ajax request user changes the selection in select1 the result gets dropped (there would be antoher result
*/
function onSelectBoxChange( selectbox) {
var selection = selectbox.value;
ajaxInterface.dispatcher.callback['listValues'] = function( result) {
      if( selection != document.getElementById(selectbox.id).value) {
       // selection changed, drop the result
    } else {
       // display values
    }
  }
  ajaxInterface.listValues( selection);
}

to allow closures
HTML_AJAX.js
lines 1624 - 1633:

if ( this.mode == &quot;async&quot; ) {
	request.isAsync = true;
	if (this.callback[callName]) {
		var self = this;
		request.callback = function(result) { self.callback[callName](result); }
		}

	} else {
		request.isAsync = false;
	}

could be changed to

if ( this.mode == &quot;async&quot; ) {
	request.isAsync = true;
	if (this.callback[callName]) {
		var handler = this.callback[callName];
		request.callback = function(result) { handler(result); }
		}
	} else {
		request.isAsync = false;
	}</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_AJAX Feature/Change Request
Reported by akutin@...
2006-11-23T15:25:25+00:00
PHP: 5.1.6 OS:  Package Version: 0.5.0

Description:
------------
In async mode it appears to be usefull to define callbacks as closures. When the response time is noticeable values of global variables might change based on user actions during the request.



Test script:
---------------
&lt;html&gt;
&lt;select id=&quot;select1&quot; onchange=&quot;onSelectBoxChange( this)&quot;&gt;
&lt;option value=&quot;1&quot;&gt;First list&lt;/option&gt;
&lt;option value=&quot;2&quot;&gt;Second list&lt;/option&gt;
&lt;option value=&quot;3&quot;&gt;Third list&lt;/option&gt;
&lt;/select&gt;
&lt;select id=&quot;select2&quot;&gt;
&lt;/select&gt;
&lt;/html&gt;
// Javascript

// ajaxInterface is an instance of an ajax stub with callbacks in async mode.

/*
the code populates values in one select box (select2) based on selection in another (select1). If during the ajax request user changes the selection in select1 the result gets dropped (there would be antoher result
*/
function onSelectBoxChange( selectbox) {
var selection = selectbox.value;
ajaxInterface.dispatcher.callback['listValues'] = function( result) {
      if( selection != document.getElementById(selectbox.id).value) {
       // selection changed, drop the result
    } else {
       // display values
    }
  }
  ajaxInterface.listValues( selection);
}

to allow closures
HTML_AJAX.js
lines 1624 - 1633:

if ( this.mode == &quot;async&quot; ) {
	request.isAsync = true;
	if (this.callback[callName]) {
		var self = this;
		request.callback = function(result) { self.callback[callName](result); }
		}

	} else {
		request.isAsync = false;
	}

could be changed to

if ( this.mode == &quot;async&quot; ) {
	request.isAsync = true;
	if (this.callback[callName]) {
		var handler = this.callback[callName];
		request.callback = function(result) { handler(result); }
		}
	} else {
		request.isAsync = false;
	}</pre>]]></description>
      <dc:date>2006-11-27T12:32:10+00:00</dc:date>
      <dc:creator>akutin &amp;#x61;&amp;#116; symcor &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_AJAX Feature/Change Request</dc:subject>
    </item>
</rdf:RDF>
