On 9/19/06, Rey Bango <[EMAIL PROTECTED]> wrote:
> Hi Patrick,
>
> Thanks for the feedback. I was missing a column as you mentioned but
> adding that in didn't resolve. Same effect just with an additional
> column. :o)
>
> I did manage, however, to add this code which actually works:
>
> $("#cartTable").append( '<tr valign="top" id="cartRow_' + thisID
> +'"></tr>' );
> $( "#cartRow_" + thisID ).html( msg );
>
> I changed the result of my ajax call to just be the table cells instead
> of the row and cells.
>
> I then appended row and then inserted the table cells returned from my
> response. I'm still not clear, though, why I could just add in the whole
> line.
>
I don't know what your $("#cartTable") is. Because you are using
append, so if the #cartTable is <table></table> so the new row will
append to <table><tr></tr></table>. but your table maybe :

<table><thead><...></thead><tbody><...></tbody></table>

If that's is, you should append the new row to tbody, but not table
element, just use:

$("#cartTable tbody").append(msg)

And try again.


-- 
I like python!
My Blog: http://www.donews.net/limodou
UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
UliPad Maillist: http://groups.google.com/group/ulipad

_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/

Reply via email to