RemoveChildControls() acting up in Safari

Login or register to post comments
1 reply [Last post]
Offline
Joined: 06/17/2009

Hi,

I'm writing an ajax enabled application using qcubed v2.0.2 and I'm having trouble removing child controls.

In Safari, when I remove child controls with ajax calls, the controls still appears on the page but with ']]>' at the end of each control.
The problem exists in safari but does not exist in Firefox (I haven't tried IE).

The XML responses in Safari and Firefox appear to be the same… example below… the deleted control is wrapped in .

Has anyone see this problem before? Any help is appreciated. Thanks

----

<?xml version="1.0" encoding="UTF-8"?>
<response>
    <controls>
          <control id="ActionSiteLogin">
                  <![CDATA[<div id="Login" >
           <label for="Email">Email:</label><br />
            <span id="Email_ctl" >
                     <input type="text" name="Email" id="Email" value="" class="textbox" style="width:25em;" /></span>
<control id="lLogin"><![CDATA[<button type="submit" name="lLogin" id="lLogin" class="button"  > Login </button>]]]]><![CDATA[></control></div>]]>
</control>
<control id="Qform__FormState">37</control>
</controls>
<commands>
<command>qc.regCA(new Array("Login","Email","Password"));</command>
</commands>
</response>

Offline
Joined: 12/02/2011

I have the same problem if creating child like that:

<?php
$btnObject
= new QLinkButton($this);
?>

But no problem in this case:
<?php
$btnObject
= new QLinkButton($this->pnlObjects);
?>

in both cases I'm clearing panel like that:

<?php
$this
->pnlObjects->RemoveChildControls(true);
?>