PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » HTML » HTML_AJAX » Bug #7812

Problems With append in IE

Details

Submitted2006-06-05 13:52 UTC
Fromdaniel at oswaldo dot pro dot br
Assignedlyaish
StatusClosed
PackageHTML_AJAX
PHP Version4.4.2
OSWindows
Roadmaps(Not assigned)

Comments

[2006-06-05 13:52 UTC] daniel at oswaldo dot pro dot br

Description:
------------
Hi,

I have a problem with the function append(). In the Firefox he functions perfectly, but when using in the IE it, instead of adding, it substitutes the text. I've searched in the web and founded this link, but i don't have certainty if its safely.

Test script:
---------------
<?php
session_start();
$_SESSION['lastRequest'] = $_SESSION['lastRequest'] + 1;

if ( $_SESSION['lastRequest'] < 10 )
{
echo date('d-m-Y H:i:s')." :" . $_SESSION['lastRequest'] . " <br>";
}
$ajax = "../../../common/htm/js/ajaxServer.php?client=all";

?>

<!-- ######AJAX########## -->
<script type="text/javascript" src="<?=$ajax?>"></script>

<script type="text/javascript">
function act() {
HTML_AJAX.append('eventos','../tpl/ajaxPlacar.php');
setTimeout('act()',2000);
}
</script>
<!-- #################### -->

#####################Ajax Server######################
<?
require_once('HTML/AJAX/Server.php');
/////////////////// Ajax ///////////////////////////

$server = new HTML_AJAX_Server();
$server->handleRequest();
//////////////////////////////////////////////////

?>

Expected result:
----------------
05-06-2006 07:26:34 :1
05-06-2006 07:26:36 :2
05-06-2006 07:26:38 :3
05-06-2006 07:26:40 :4
05-06-2006 07:26:42 :5
05-06-2006 07:26:44 :6
05-06-2006 07:26:46 :7
05-06-2006 07:26:48 :8
05-06-2006 07:26:50 :9

Actual result:
--------------
05-06-2006 07:26:50 :9

[2006-08-11 05:25 UTC] lyaish at php dot net

This bug has been fixed in CVS.

If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET).

If this was a problem with the pear.php.net website, the change should be live shortly.

Otherwise, the fix will appear in the package's next release.

Thank you for the report and for helping us make PEAR better.