Topic: Xajax Bugs with IE?
Any reason why this piece of code may not work in IE, but it does in FF? (every other part of the xajax code not shown does work) The problem is when onclick is fired, it does not display the <tr></tr> below for the item clicked. Is Append the correct call for the xajax?.. I want the user to be able to continue clicking on a select box value and the cooresponding results continuing to populate below in a nested table.
I'll spend some time debugging it, but wanted to see if there was something glaring in my code to make it fail in IE.
btw, what is the difference between addAppend and Append?
function store_upscode_onchange($form_values)
{
$objResponse = new xajaxResponse();
$storename_name = $form_values['storename_name'];
$store_number = $form_values['store_number'];
$store_id = $form_values['store_id'];
if ($store_id != '0')
{
//$this->insert_store($store_id); // Insert store entry line into contracts table
$line_entry = $this->build_line_entry($store_id, $storename_name, $store_number);
$objResponse->Append("txt_result", "innerHTML", $line_entry);
}
else
{
$objResponse->Assign("txt_result", "innerHTML", "");
}
return $objResponse;
}
function build_line_entry($id, $name, $number)
{
$line = "<tr><td class='padded_td'>" . $number. "</td><td class='padded_td'>" . $name . "</td><td class='padded_td'>" . $id . "</td></tr>";
return $line;
}
Here is my VIEW
<form name="form_stores" id="form_stores" method="post" action="/dropdownlist/postback">
<table class="content_table">
<tr>
<td><?=$storename_name_dropdownlist?></td>
<td><div id="div_store_number"><?=$div_store_number?></div></td>
<td><div id="div_store_upscode"><?=$div_store_upscode?></div></td>
</tr>
<tr>
<td class="table_footer">Store Name</td>
<td class="table_footer">Store Number</td>
<td class="table_footer">UPS Code</td>
</tr>
<tr>
<td colspan="3" class="empty"></td>
</tr>
<tr>
<td></td>
<td></td>
<td class="right"><input id="saveForm" class="btTxt submit" type="submit" value="Add" /></td>
</tr>
<tr>
<td colspan="3" class="empty"></td>
</tr>
<tr>
<td colspan="3">
<table class="content_table" id="txt_result"></table>
</td>
</tr>
</table>
</form>