Quantcast
Channel: Pragmatic Forums | Posts by Tan YL
Viewing all articles
Browse latest Browse all 19

highlight effect posted by Tan YL @ Wed, 03 Sep 2008 15:35:38 +0000

$
0
0

no i can’t. it doesn’t seem to see the id of highlighted.

I know
<% if product.groceries.id == @item.groceries_id %>
is producing the correct code cause i am debugging now and just using


def add_to_cart
@sguser = Sguser.find(params[:ad])
@lineprice = SglineItem.find(:all, :conditions => “sguser_id =#{params[:ad]}”)

@item = SglineItem.new
    @item.sguser_id= params[:ad]
    @item.groceries_id=params[:bd]
    @item.save!
respond_to do |format|
format.js 
end
end

the old product that is added flashes while the new one just stays the same. <tr id="highlighted"> does not exist for both the old and the new product which i find is quite odd. what on earth is wrong am i suppose to see <tr id="highlighted"> on the old product ?(firing up depot to check it out)


Viewing all articles
Browse latest Browse all 19

Trending Articles