Friday, February 5, 2010

Cake Html Link , Ajax Links , $html->link , $this->ajax

echo $html->image("add_btn.jpg" , array(
"alt" =>"Make Favourite",
"id"=>"addImg".$products['Product']['id'],
"title" => "Choose this product to purchase",
"alt" => "Choose this product to purchase",
"onclick"=>"checkEmpty('".'product_quantity'.$products['Product']['id']."')"
)
);
---------------------------------------------------------------
echo $ajax->link(
$html->image("add_btn.jpg" ,
array(
"alt" =>"Select Product",
"id"=>"addImg".$products['Product']['id'],
"title" => "Choose this product to purchase",
"alt" => "Choose this product to purchase",
"onclick"=>"checkEmpty('".'product_quantity'.$products['Product']['id']."'); makedisable('distributorInnerDiv'); "
)
),
array( 'controller' => 'products',
'action' => 'product_distributer',
$products['Product']['id'],
$qtyValue
),
array( 'update' => 'distributorDiv')
,
NULL,
false
);

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home