I have the following code generating an error only in IE8:
HTML
<?php
echo CHtml::link('remove',array('order/removeproductfromcart'),array(
'submit'=>array('order/removeproductfromcart'),
'params'=>array(
'product_id'=>$product['product_id'],
'identifier'=>$product['identifier'],
Yii::app()->request->csrfTokenName => Yii::app()->request->csrfToken
),
'class'=>'remove-product',
'id'=>'product-remove-'.$product['identifier']
)
);
?>
Controller
public function actionRemoveProductFromCart()
{
Order::model()->removeProductFromCart($_POST['product_id'],$_POST['identifier']);
Yii::app()->user->setFlash('success','Your cart has been successfully updated.');
$this->redirect(array('order/cart'));
}
As you can tell it is pretty basic. It works on all browsers except for IE8, which throws the error:
Invalid argument. jquery.yii.js, line 47 character 4
jquery.yii.js can be found here: https://github.com/yiisoft/yii/blob/master/framework/web/js/source/jquery.yii.js#L47
When I open the jquery.yii.js file in my IDE it throws an error on the "this" portion of removeChild. Anyone know of a way to fix this so it can run on IE8?
Thanks!