Hi I"m trying to run through the sample Depot app while I learn all the little pieces of Rails and I came upon an error I'm intrigued by. I am adding an Ajax hook into a page view and the content is rendered correctly (It's the D2 - Ajax Based Cart section). The problem is, when I use the 'add to cart' button it adds the element but the HTML sent back by the Ajax call isn't treated by the stylesheets (although all the data is intact, it's just in black text / normal size), if I refresh the whole page it's rendered fine. I have basically 'diffed' the section of the cart being rendered and there is not a single thing wrong, hence why I suspect it's how Firefox handle CSS applications post page processing. Then again I see site using Ajax without this issue so I know it's me and not Firefox. :)
on 2007-06-27 03:43
on 2007-06-27 06:04
OKay I"ll approach this from another angle. I click to update my cart, works fine but renders the cart with no formatting. If I refresh the whole page the formatting is fine. Now, if I click on the "add to cart" button AGAIN I get the following error: RJS Error: TypeError element has no properties I haven't been able to find anything on the web that deals with this problem. (At nothing that has helped explain the issue and help me figure out the solution) Thanks in advance.
on 2007-06-27 06:18
on 2007-06-27 06:44