> I've been following the book through and am now at Ch 5, working on > the AJAX add to basket functionality.
> It all seems to be fine except for the following error:
> RJS error: > TypeError: element has no properties > (in Camino)
> or
> TypeError: Null value (in Safari)
> these appear in dialog boxes, after these are OK'd the cart then > updates.
> I've been over the code and cant see what would be triggering this.
> Thanks in advance.
Can you try it in Firefox using Firebug? It would probably give you more information about where the problem is.
//jarkko
> Tom.
> --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google > Groups "Beginning Ruby on Rails E-Commerce" group. > To post to this group, send email to railsecommerce@googlegroups.com > To unsubscribe from this group, send email to railsecommerce-unsubscribe@googlegroups.com > For more options, visit this group at http://groups.google.com/group/railsecommerce?hl=en > -~----------~----~----~----~------~----~------~--~---
> it says the problem is at line 866 of prototype.js, which reads:
> this.transport.send(body);
> As someone new to ruby i not sure which element is missing properties > (it's being given the book id, what more does it need?!)
The error is from Javascript, not Ruby. Can you update all the javascripts (there's a rake task for that in Rails) and see whether the error will go away?
On Jun 2, 7:45 am, Jarkko Laine <jar...@jlaine.net> wrote:
> The error is from Javascript, not Ruby. Can you update all the
> javascripts (there's a rake task for that in Rails) and see whether
> the error will go away?