TypeError: element has no properties / TypeError: Null value in Chapter 5

339 views
Skip to first unread message

Tom Dunning

unread,
May 28, 2008, 6:17:46 AM5/28/08
to Beginning Ruby on Rails E-Commerce
Hi,

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.

Tom.

Jarkko Laine

unread,
May 28, 2008, 7:00:24 AM5/28/08
to railsec...@googlegroups.com
Hi Tom,

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 railsec...@googlegroups.com
> To unsubscribe from this group, send email to railsecommerc...@googlegroups.com
> For more options, visit this group at http://groups.google.com/group/railsecommerce?hl=en
> -~----------~----~----~----~------~----~------~--~---
>

--
Jarkko Laine
http://jlaine.net
http://dotherightthing.com
http://www.railsecommerce.com
http://odesign.fi


Tom Dunning

unread,
May 30, 2008, 6:12:13 AM5/30/08
to Beginning Ruby on Rails E-Commerce
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?!)

Tom Dunning

unread,
May 30, 2008, 10:44:14 AM5/30/08
to Beginning Ruby on Rails E-Commerce

*UPDATE*

this same error, and line is appearing when i run the remove command.

On May 30, 11:12 am, Tom Dunning <tom.dunn...@aspectdesign.co.uk>
wrote:

Jarkko Laine

unread,
Jun 2, 2008, 2:45:23 AM6/2/08
to railsec...@googlegroups.com

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?

//jarkko

Tom Dunning

unread,
Jun 2, 2008, 4:44:57 AM6/2/08
to Beginning Ruby on Rails E-Commerce


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?
>
> //jarkko
>
> --
> Jarkko Lainehttp://jlaine.nethttp://dotherightthing.comhttp://www.railsecommerce.comhttp://odesign.fi
>
> smime.p7s
> 3KDownload


I've run "rake rails:update:javascripts" and it ran, but the error
still remains.
Ideas?
Reply all
Reply to author
Forward
0 new messages